private void yesButton_Click(object sender, System.EventArgs e) { noButton.Enabled = false; yesButton.Enabled = false; ThreadPool2.QueueUserWorkItem(new WaitCallback(doMigrate), "terrafolder migration"); }
/// <summary> /// called from MainForm.MainForm_Closing() when exiting normally /// </summary> public static void Closing() { if (!hasClosed) { goingDown = true; LibSys.StatusBar.WriteLine("Project: Closing '" + Thread.CurrentThread.Name + "' - " + DateTime.Now); ThreadPool2.EmptyQueue(); Project.SaveOptions(); hasClosed = true; } }