示例#1
0
        private void Run()
        {
            List <String> _lst = new List <String>();

            foreach (ListViewItem _Account in customListView2.Items)
            {
                Tethering tethering = new Tethering(this);
                tethering.TetheringMethod(firefoxCheckBox2.Checked, label4);

                naverSelenium naver = new naverSelenium(this, _Account.SubItems[2].Text, _lst);

                if (naver.openChrome(_Account.Index, _Account.SubItems[2].Text, _Account.SubItems[3].Text))
                {
                    naver.cafeWrite(0, int.Parse(_Account.SubItems[4].Text));
                }

                naver.driver.Quit();
            }

            mThreadState    = null;
            button2.Enabled = true;
            button1.Enabled = false;

            MessageBox.Show("모든 계정의 작업이 완료되었습니다.");
        }
示例#2
0
        private void _buttonChangeWifiApState_Click(object sender, System.EventArgs e)
        {
            Tethering tethering = new Tethering(this);

            try
            {
                tethering.SetWifiTetheringEnabled(true);
            }
            catch (Exception ex)
            {
                _textViewMessage.Text = ex.Message;
            }

            _wifiStateOn = !_wifiStateOn;
        }