private static void RunMainForm() { Thread.CurrentThread.IsBackground = true; // prevent hung mainthread? mainform = new GuiMainForm(Controller.AsmInfo.GetAtt("Title"), icon); Application.EnableVisualStyles(); // all done initializing, kill splash splash.expired = true; splashthread.Join(); if ((args.Length > 0) && (args[0] == "-checkhang")) { mainform.Shown += delegate (object o,EventArgs a) { mainform.Refresh(); mainform.Update(); Thread.Sleep(1000); Environment.Exit(0); }; } // run message loop Application.Run(mainform); }
public GuiDiagram(GuiMainForm gui) { this.gui = gui; InitializeComponent(); }
private static void InitGui() { GuiMainForm mainform = new GuiMainForm(Controller.AsmInfo.GetAtt("Title"), icon); mainform.OnQuit(null, null); // generate locations file }