public void Start() { if (!InnerRunner.IsRunning) { InnerRunner.Start(); } }
public void Stop() { if (InnerRunner.IsRunning) { InnerRunner.Stop(); } }
public static void Run() { if (serverRunned) { return; } serverRunned = true; innerRunner = new InnerRunner(); innerRunner.Run(); }
private void ProgramForm_FormClosed(object sender, FormClosedEventArgs e) { InnerRunner.Stop(); }