Esempio n. 1
0
 static void Main()
 {
     if (Environment.UserInteractive)
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         Application.Run(new FormMain());
     }
     else
     {
         ServerMain.StartServer(null);
         Aegis.Framework.WaitForRunning();
     }
 }
Esempio n. 2
0
 private void Click_StartStop(object sender, EventArgs e)
 {
     if (_btnStartStop.Text == "Start")
     {
         _tbLog.Text        = "";
         _btnStartStop.Text = "Stop";
         ServerMain.StartServer(_tbLog);
     }
     else
     {
         _btnStartStop.Text = "Start";
         ServerMain.StopServer();
     }
 }
Esempio n. 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     ServerMain.CreateStorage();
 }
Esempio n. 4
0
        private void OnFormClosed(object sender, FormClosedEventArgs e)
        {
            ServerMain.StopServer();

            Aegis.Calculate.IntervalTimer.Timers["UpdateMainUI"]?.Dispose();
        }