예제 #1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string proxy = dataGridView1.CurrentCell.Value.ToString();

            if (useProxifier)
            {
                ProxifierReload(proxy.Split(':')[0], int.Parse(proxy.Split(':')[1]));
            }
            //neu ko dung proxifier
            else
            {
                if (checkBox3.Checked)
                {
                    ChangeProxy.SetSockEntireComputer(proxy);
                }

                //set socks for firefox, ff can't use system sock error
                if (checkBox4.Checked)
                {
                    System.Diagnostics.Process cmd;
                    using (System.IO.StreamWriter file = new System.IO.StreamWriter("autoItReadProxy.txt"))
                    {
                        file.Write(proxy);
                    }
                    cmd = System.Diagnostics.Process.Start("changeSocksFF.exe");
                    cmd.WaitForExit();
                }
            }

            //change systemtime
            if (systemTime)
            {
                ChangeProxy.ChangeTimezone(dataGridView1.CurrentRow.Cells[5].Value.ToString());
            }
            else
            {
                ChangeProxy.ResetTimezone();
            }
            label4.Text = proxy;
        }
예제 #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     ChangeProxy.SetSockEntireComputer("1.1.1.1:1");
 }