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(); } }
private void OnFormClosed(object sender, FormClosedEventArgs e) { ServerMain.StopServer(); Aegis.Calculate.IntervalTimer.Timers["UpdateMainUI"]?.Dispose(); }