Exemplo 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);
 }
Exemplo n.º 2
0
        /*------------------------------------------------------------------*/

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