Exemple #1
0
 public void Start()
 {
     if (!InnerRunner.IsRunning)
     {
         InnerRunner.Start();
     }
 }
Exemple #2
0
 public void Stop()
 {
     if (InnerRunner.IsRunning)
     {
         InnerRunner.Stop();
     }
 }
        public static void Run()
        {
            if (serverRunned)
            {
                return;
            }

            serverRunned = true;
            innerRunner  = new InnerRunner();
            innerRunner.Run();
        }
Exemple #4
0
 private void ProgramForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     InnerRunner.Stop();
 }