protected override void OnClosing(CancelEventArgs e) { base.OnClosing(e); Config.EndOfApplication = true; UiUpdater?.Stop(); EnvironmentThread?.Abort(); AnimationThread?.Abort(); }
private void BtnStopClick(object sender, EventArgs e) { EnvironmentThread?.Abort(); AnimationThread?.Abort(); UiUpdater?.Stop(); RefreshInfo(); SetButtonsEnable(false); }
public void End() { AnimationThread?.Abort(); }