private void _wiFiDetector_OnSignalStrengthChanged(HelperFunctions.WlanInfos newWiFiInfos)
 {
     ObjectHolder.MainContext.Post(delegate(object o)
     {
         this.UpdateWifiDisplay(newWiFiInfos);
     }, null);
 }
Esempio n. 2
0
 private void UpdateWifiDisplay(HelperFunctions.WlanInfos newWiFiInfos, bool showDisplay)
 {
     if (showDisplay)
     {
         string content  = "";
         string content2 = "";
         if (newWiFiInfos.Signal > 10u)
         {
             content2 = "";
         }
         if (newWiFiInfos.Signal <= 10u)
         {
             content2 = " ";
         }
         if (newWiFiInfos.Security.ToString() == "Secure" || newWiFiInfos.Security.ToString() == "LowSecure")
         {
             content = "";
         }
         if (newWiFiInfos.Security.ToString() == "NotSecure")
         {
             content = "";
         }
         this.SignalStatus.Content = content2;
         this.SecurStatus.Content  = content;
         this.WifiLabel.Content    = newWiFiInfos.Ssid;
         this._wifiSSid            = newWiFiInfos.Ssid;
         this.SetWifiSettingToCombobox(newWiFiInfos.Ssid);
         return;
     }
     this.SignalStatus.Content = "";
     this.SecurStatus.Content  = "";
     this.WifiLabel.Content    = "";
 }
Esempio n. 3
0
 private void UpdateWifiDisplay(HelperFunctions.WlanInfos newWiFiInfos, bool showDisplay)
 {
     if (this._mWifiTile == null)
     {
         return;
     }
     if (showDisplay)
     {
         if (newWiFiInfos.Security.ToString() == "Secure" || newWiFiInfos.Security.ToString() == "LowSecure")
         {
             this._mWifiTile.set_TileDescription(General.Home_UpdateWifiDisplay_Provide_your_wifi_with_a_military_grade_protection);
         }
         if (newWiFiInfos.Security.ToString() == "NotSecure")
         {
             this._mWifiTile.set_TileDescription(General.Home_UpdateWifiDisplay_);
         }
         this._mWifiTile.Content = ((Theming.CurrentTheme == Theming.Theme.Pro) ? CyberGhost.Translations.Home.GhostWifi : General.Home_UpdateWifiDisplay_Wifi_Protection);
         this._mWifiTile.Tag     = "WifiTile";
         if (ObjectHolder.CurrentUser != null)
         {
             this._mWifiTile.set_TileImageSource(ObjectHolder.CurrentUser.HasUserAccessToFeature(11) ? this._freeImageWifi : this._premiumImageWifi);
             return;
         }
     }
     else
     {
         this._mWifiTile.set_TileDescription(General.Home_UpdateWifiDisplay_Provide_your_network_with_a_military_grade_protection);
         this._mWifiTile.Tag = "NetworkTile";
         if (ObjectHolder.CurrentUser != null)
         {
             this._mWifiTile.set_TileImageSource(ObjectHolder.CurrentUser.HasUserAccessToFeature(17) ? this._freeImageNetwork : this._premiumImageNetwork);
         }
         this._mWifiTile.Content = ((Theming.CurrentTheme == Theming.Theme.Pro) ? CyberGhost.Translations.Home.GhostNetwork : CyberGhost.Translations.Home.HeaderProtection);
     }
 }
 private void UpdateWifiDisplay(HelperFunctions.WlanInfos newWiFiInfos)
 {
     if (!this._isbeforeConnectForWifiState)
     {
         SettingsHolder.get_Settings().get_ProfileWifi().CurrentSSID = newWiFiInfos.Ssid;
         this.StatusMessage.Content = (this.StatusMessage.Content = Profiles._YOUR_WIFI___ + SettingsHolder.get_Settings().get_ProfileWifi().CurrentSSID + " " + Profiles.IS_CURRENTLY_PROTECTED);
     }
 }