This commit is contained in:
Ray 2020-05-03 11:43:09 +01:00
parent 4e322b9fe9
commit 4a83971868

View File

@ -3,15 +3,7 @@ using AppLauncher.Windows.Forms;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@ -27,12 +19,6 @@ namespace AppLauncher
InitializeComponent();
}
//protected override void OnLoad(EventArgs e)
//{
// base.OnLoad(e);
//}
protected override void OnShown(EventArgs e)
{
base.OnShown(e);
@ -44,76 +30,6 @@ namespace AppLauncher
}
this.Width = flowLayoutPanel1.Width + (flowLayoutPanel1.Left * 2);
}
private async void button1_Click(object sender, EventArgs e)
{
//if (this.Width > collapsedWidth)
//{
// await collapseWindow(collapsedWidth, 6);
//}
//else
//{
// await expandWindow(expandedWidth, 8);
//}
}
private void button2_Click(object sender, EventArgs e)
{
//List<TileGroupModel> groupList = new List<TileGroupModel>();
//TileGroupModel group1 = new TileGroupModel()
//{
// Title = "Featured",
// IsExpanded = true,
// Items = new List<TileModel>(),
// GridSize = new Size(8, 2)
//};
//group1.Items.Add(new TileModel()
//{
// Title = "CubicExplorer",
// Icon = null,
// Position = new Point(0, 0),
// ProcessFilename = @"C:\B\Portable Files\CubicExplorer\v0.95.1\CubicExplorer.exe",
// ProcessWorkingDirectory = @"N:\D"
//});
//group1.Items.Add(new TileModel()
//{
// Title = "VeraCrypt",
// Icon = null,
// Position = new Point(1, 0),
// ProcessFilename = @"C:\B\Portable Files\VeraCrypt\VeraCrypt-x64.exe",
// ProcessWorkingDirectory = @"L:\"
//});
//groupList.Add(group1);
//File.WriteAllText(Application.StartupPath.TrimEnd('\\') + "\\test1.jsonfig", JsonConvert.SerializeObject(groupList));
//ProcessStartInfo process = new ProcessStartInfo();
//process.FileName = @"C:\B\Portable Files (pure)\Build and Deploy Utility\v0.2.0.046 alpha\badutil.exe";
//process.Arguments = "";
//process.WindowStyle = ProcessWindowStyle.Normal;
//process.Verb = "runas";
//Process.Start(process);
//richTextBox1.Text += tilePanelContainer1.GridSize.ToString() + Environment.NewLine;
//tilePanelContainer1.Controls.Add(tilePanel1);
//tilePanel1.Location = new Point(0, 0);
//tilePanelContainer1.Controls.Add(tilePanel2);
//tilePanel2.Location = new Point(0, 0);
}
public async Task ToggleSize()
@ -192,7 +108,7 @@ namespace AppLauncher
this.Close();
}
protected async void loadSession(string filename)
protected void loadSession(string filename)
{
string sourceCode = File.ReadAllText(filename);
if (string.IsNullOrWhiteSpace(sourceCode))