void onExit(object sender, EventArgs e) { _sysproxy.Enabled = false; _clash.Stop(); _trayIcon.Dispose(); Application.Exit(); }
public void ExitApp() { logger.LogInformation("Exit App."); clash.Exited -= Clash_Exited; clash.Stop(); notifyIcon.Visible = false; ExitThread(); }