Inheritance: System.Windows.Forms.Form
        public void Init(MainForm main)
        {
            Main = main;

            NavButtons.Init(main);

            FieldsRadioButton_CheckedChanged(this, null);
        }
Example #2
0
        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;
        }
Example #3
0
 public void Init(MainForm main)
 {
     Main = main;
     Model = main.Model;
 }
Example #4
0
 // opens xray from the builder exe to analyze the dat
 public static void Analyze(string path)
 {
     if (LoadNodeMap(path))
     {
         MainForm = new MainForm();
         MainForm.Show();
     }
 }