Ejemplo n.º 1
0
        private void frmGoogleSearch_FormClosed(object sender, FormClosedEventArgs e)
        {
            BimtProxyService.ShutDown();
            Application.Exit();
            //app.ShutDown();
            //BimtProxyService.ShutDown();
            Process p = GetProcess("Shadowsocks");

            if (p != null)
            {
                p.Kill();
            }
        }
Ejemplo n.º 2
0
 public frmGoogleSearch(IShutDownable i)
 {
     try
     {
         InitializeComponent();
         app = i;
     }
     catch (Exception)
     {
         BimtProxyService.ShutDown();
         MessageBox.Show(null, "代理初始化失败!", "代理设置");
     }
 }
Ejemplo n.º 3
0
 private void button2_Click(object sender, EventArgs e)
 {
     MessageBox.Show(null, "代理已停止!", "Setting");
     BimtProxyService.ShutDown();
     this.FindForm().Close();
 }