Пример #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     StartForm sf = new StartForm();
     MainForm mf = new MainForm();
     //отображение формы конфигурации и запуска
     MFStartParams mfp = sf.Show();
     if (mfp != null)
     {
         mf.Init(mfp);
         Application.Run(mf);
     }
     else
         Application.Exit();
 }
Пример #2
0
 private void bStop_Click(object sender, EventArgs e)
 {
     kernel.Stop();
     StartForm sf = new StartForm();
     this.Hide();
     MFStartParams mfp = sf.Show();
     if (mfp != null)
     {
         this.Init(mfp);
         this.Show();
         this.OnLoad(e);
     }
     else
     {
         this.Show();
         this.timer1.Stop();
     }
 }