예제 #1
0
 void onExit(object sender, EventArgs e)
 {
     _sysproxy.Enabled = false;
     _clash.Stop();
     _trayIcon.Dispose();
     Application.Exit();
 }
예제 #2
0
파일: App.cs 프로젝트: yaling888/ClashSharp
        public void ExitApp()
        {
            logger.LogInformation("Exit App.");

            clash.Exited -= Clash_Exited;
            clash.Stop();

            notifyIcon.Visible = false;

            ExitThread();
        }