private void button1_Click(object sender, EventArgs e)
        {
            globalVar.CommandList.Clear();
            wifi WiFiAPI = new wifi();

            WiFiAPI.ExecuteCommand("netsh wlan disconnect");
            UpdateUI((int)ProcessStatus.Status_None);
        }
        private void ExecuteConnect(string SSID, bool establish)
        {
            wifi wifiAPI = new wifi();

            if (establish)
            {
                wifiAPI.EnumerateNICs(SSID);
            }
            else
            {
                wifiAPI.ExecuteCommand("netsh wlan disconnect");
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            UpdateUI((int)ProcessStatus.Status_Start);
            double[]  TimeEstimation = new double[globalVar.CommandList.Count];
            wifi      WifiAPI        = new wifi();
            string    sURL           = "";
            Stopwatch sw             = new Stopwatch();
            int       index          = 0;

            for (index = 0; index < globalVar.CommandList.Count; index++)
            {
                sw.Reset();
                sw.Start();
                Info_listView1.Items[index].Selected = true;
                Info_listView1.Select();
                if (Info_listView1.Items[index].Text.ToString().Contains("Connect"))
                {
                    string URLConnet = Info_listView1.Items[index].Text.ToString();
                    string SSID      = "";
                    URLConnet = URLConnet.Substring(URLConnet.IndexOf(",") + 1);
                    SSID      = URLConnet.Substring(0, URLConnet.IndexOf(","));
                    URLConnet = URLConnet.Substring(URLConnet.IndexOf(",") + 1);
                    if (URLConnet == "0")
                    {
                        ExecuteConnect(SSID, false);
                    }
                    else
                    {
                        ExecuteConnect(SSID, true);
                    }
                }
                if (Info_listView1.Items[index].Text.ToString().Contains("Socket"))
                {
                    if (Info_listView1.Items[index].Text.ToString().Contains("0"))
                    {
                        ExecuteSocketConnect(false);
                    }
                    else
                    {
                        ExecuteSocketConnect(true);
                    }
                }
                else if (Info_listView1.Items[index].Text.ToString().Contains("Delay"))
                {
                    int sleepMS = Convert.ToInt32(Info_listView1.Items[index].Text.ToString().Substring(Info_listView1.Items[index].Text.ToString().IndexOf(",") + 2));
                    System.Threading.Thread.Sleep(sleepMS);
                }
                else
                {
                    sURL = globalVar.CommandList[index].ToString();
                    WifiAPI.ExecuteHTTPCommand(sURL);
                }
                sw.Stop();
                TimeEstimation[index] = sw.Elapsed.TotalMilliseconds;
            }

            UpdateUI((int)ProcessStatus.Status_Finish);
            foreach (int element in TimeEstimation)
            {
                Console.WriteLine(element.ToString());
            }
            MessageBox.Show("Command Finish");
        }