Esempio n. 1
0
 public Form1()
 {
     InitializeComponent();
     portsHandler   = new PortsHandler(portsBox);
     buttonsAndText = new ButtonsAndTextBoxesControl
                          (connectBtn, refreshBtn, writeBtn, wifiPassTextBox, userNameTextBox, userPassTextBox);
     buttonsAndText.ConnectBtnStatusSwitch(portsHandler.PortsNames.Length != 0);
     WlanClient.wifiFind(wifiList);
 }
Esempio n. 2
0
        /*------------------------------------------------------------------*/

        private void refresh_Click(object sender, EventArgs e)
        {
            WlanClient.wifiFind(wifiList);
            portsHandler.PortsRefresh();
            buttonsAndText.ConnectBtnStatusSwitch(portsHandler.PortsNames.Length != 0);
        }