Example #1
0
 private void ShowInfo(WiFiNetwork network)
 {
     NetworkInformation.Text = network.Description + network.GetBssIds();
     if (network.IsConnected)
     {
         ConnectionStatusL.Text = "Подключено";
         PasswordF.Enabled      = false;
         ConnectionB.Enabled    = false;
     }
     else
     {
         ConnectionStatusL.Text = "Доступно";
         PasswordF.Enabled      = network.IsSecured;
         ConnectionB.Enabled    = true;
     }
 }
Example #2
0
 private void ShowInfo(WiFiNetwork network)
 {
     NetworkInformation.Text = network.Description + network.GetMAC();
     if (network.IsConnected)
     {
         ConnectionStatusL.Text = "Connected";
         PasswordF.Enabled      = false;
         PasswordF.Clear();
         ConnectionB.Enabled = false;
     }
     else
     {
         ConnectionStatusL.Text = "Available";
         PasswordF.Enabled      = network.IsSecured;
         ConnectionB.Enabled    = true;
     }
 }