public void StopServer() { TestingHttpServer.StopServer(); _provider.ScoreChanged -= new EventHandler <EventArgs>(_provider_ScoreChanged); _provider.StateChanged -= new EventHandler <EventArgs>(_provider_StateChanged); _provider.TimeChanged -= new EventHandler <EventArgs>(_provider_TimeChanged); _provider.WarningMessage -= new EventHandler <EventArgs>(_provider_WarningMessage); timer.Stop(); }
private void AppealForm_FormClosed(object sender, FormClosedEventArgs e) { TestingHttpServer.StopServer(); }
private void TestContentForm_FormClosing(object sender, FormClosingEventArgs e) { TestingHttpServer.StopServer(); }