public void Init(MainForm main) { Main = main; NavButtons.Init(main); FieldsRadioButton_CheckedChanged(this, null); }
public static void StartGui() { //if (Gui != null) // return; int id = RndGen.Next(); var uiThread = new Thread(() => { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); MainForm = new MainForm(); Application.Run(MainForm); } catch (Exception ex) { LogError("Gui Error: " + ex.Message); } UIs.Remove(id); }); uiThread.SetApartmentState(ApartmentState.STA); uiThread.Start(); UIs[id] = uiThread; }
public void Init(MainForm main) { Main = main; Model = main.Model; }
// opens xray from the builder exe to analyze the dat public static void Analyze(string path) { if (LoadNodeMap(path)) { MainForm = new MainForm(); MainForm.Show(); } }