private void form_ExitAndShutDownClicked(object sender, EventArgs e) { if (ServiceGateway.IsStarted) { ServiceGateway.Stop(); } Application.Exit();//This call cannot be tested. }
private void MainView_StartStopClicked(object sender, EventArgs e) { if (_ServiceGateway.IsStarted) { _ServiceGateway.Stop(); // BUG workaround "Start/stop bug on service". _TimerBugWorkaround.Enabled = true; _MainView.StartStopEnabled = false; _MainView.StartStopText = "Stopping"; _MainView.StartStopColor = Color.LightSkyBlue; } else { _ServiceGateway.Start(); } }