private void button2_Click(object sender, EventArgs e) { if (GateCom.IsOpen) { GateCom.Write("Scan#"); List_SSID.Items.Clear(); } }
private void Connect_Wifi_Click(object sender, EventArgs e) { if (GateCom.IsOpen) { GateCom.Write("(" + SSID_Name.Text + ")"); GateCom.Write("[" + Password_Text.Text + "]" + "#"); } else { ErrorText_WifiStatus.Text = "Please choose the COMPORT"; } }