Пример #1
0
 private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SystemProxy.UpdateSystemProxy(1);
     this.notifyIcon1.Visible = false;
     this.Close();
     this.Dispose();
     Application.Exit();
 }
Пример #2
0
        private void radioButton3_CheckedChanged(object sender, EventArgs e)
        {
            RadioButton radioButton = sender as RadioButton;

            if (radioButton.Checked)
            {
                SystemProxy.UpdateSystemProxy(3);
            }
        }
Пример #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ConfigJson userConfigJson = Config.LoadJson();

            this.radioButton1.Checked = true;
            SystemProxy.UpdateSystemProxy(1);
            Thread listener = new Thread(RunListener);

            listener.Start(this);
            // MessageBox.Show(userConfigJson.Passport, userConfigJson.Servers[0], MessageBoxButtons.YesNo);
        }
Пример #4
0
 private void 最小化ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SystemProxy.UpdateSystemProxy(2);
     (sender as ToolStripMenuItem).Checked = !(sender as ToolStripMenuItem).Checked;
 }