private void MainWindow_FormClosing(object sender, FormClosingEventArgs e) { try { //if (buildThread != null) // buildThread.Abort(); //while ( buildThread.IsAlive) ; } catch (Exception) { } IcarusNetSettings.Save(); }
private void MainWindow_Load(object sender, EventArgs e) { this.OpenProject = null; IcarusNetSettings.Load(); string[] args = Environment.GetCommandLineArgs(); if (args.Length != 1) { var dir = new FileInfo(args[1]).Directory.FullName; OpenProjectFromPath(dir); } //setGrayedOut(); //tabsTop.Enabled = true; //tabsTop.Visible = tabsTop.TabPages.Count != 0; //Application.AddMessageFilter() }
public static void Load() { Instance = JsonConvert.DeserializeObject <IcarusNetSettings>(File.ReadAllText(ProjectLocations.SettingsFile), jsonSettings); }