コード例 #1
0
ファイル: Program.cs プロジェクト: ECN-Lab/Rose.Server
 static void Main()
 {
     if (Environment.UserInteractive)
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         Application.Run(new FormMain());
     }
     else
     {
         ServerMain.StartServer(null);
         Aegis.Framework.WaitForRunning();
     }
 }
コード例 #2
0
ファイル: FormMain.cs プロジェクト: ECN-Lab/Rose.Server
 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();
     }
 }