public void OnAfterConnected(bool isReconnect, bool isAppProtection) { ObjectHolder.DownloadTimerCounter = 0; this._timercounter = 0; this._timerForDownload.Start(); this._featureStatsUpdateTimer.Start(); VpnServerLastConnectionInfos expr_32 = ObjectHolder.CurrentConnectionInfos; if (!string.IsNullOrEmpty((expr_32 != null) ? expr_32.ServerIp : null)) { TextBlock arg_5C_0 = this.LblUpRightFirstLine; VpnServerLastConnectionInfos expr_50 = ObjectHolder.CurrentConnectionInfos; arg_5C_0.Text = ((expr_50 != null) ? expr_50.ServerIp : null); } if (ObjectHolder.CurrentProfile.Equals(SettingsHolder.get_Settings().get_ProfileAnonymousBrowsing())) { this.SwitchLeft.Style = (base.FindResource("AnonSurfing") as Style); this.SwitchRight.Style = (base.FindResource("AnonSurfing") as Style); this.LblUpRightFirstLine.Foreground = (base.FindResource("BrushColorYellow") as SolidColorBrush); } if (ObjectHolder.CurrentProfile.Equals(SettingsHolder.get_Settings().get_ProfileAnonymousDownloading())) { this.SwitchLeft.Style = (base.FindResource("AnonDown") as Style); this.SwitchRight.Style = (base.FindResource("AnonDown") as Style); this.LblUpRightFirstLine.Foreground = (base.FindResource("ProfileAnonDownloadColorBrush") as SolidColorBrush); } if (ObjectHolder.CurrentProfile.Equals(SettingsHolder.get_Settings().get_ProfileCustom())) { this.SwitchLeft.Style = (base.FindResource("Custom") as Style); this.SwitchRight.Style = (base.FindResource("Custom") as Style); this.LblUpRightFirstLine.Foreground = (base.FindResource("MangentaBaseBrush") as SolidColorBrush); } if (ObjectHolder.CurrentProfile.Equals(SettingsHolder.get_Settings().get_ProfileNetwork())) { this.SwitchLeft.Style = (base.FindResource("Wifi") as Style); this.SwitchRight.Style = (base.FindResource("Wifi") as Style); this.LblUpRightFirstLine.Foreground = (base.FindResource("ProfileWifiColorBrush") as SolidColorBrush); } if (ObjectHolder.CurrentProfile.Equals(SettingsHolder.get_Settings().get_ProfileWifi())) { this.SwitchLeft.Style = (base.FindResource("Wifi") as Style); this.SwitchRight.Style = (base.FindResource("Wifi") as Style); this.LblUpRightFirstLine.Foreground = (base.FindResource("ProfileWifiColorBrush") as SolidColorBrush); } this.LblUpRightSecondLine.Text = Profiles.ConnectedAnonymousBrowsing_OnAfterConnected_IP_REPLACED_BY_CYBERGHOST; this.SwitchLeft.Visibility = Visibility.Visible; this.SwitchRight.Visibility = Visibility.Visible; this.SwitchToPageNumber(ObjectHolder.CurrentProfile.Equals(SettingsHolder.get_Settings().get_ProfileAnonymousDownloading()) ? 1 : 2); }
public void OnAfterConnected(bool isReconnect, bool isAppProtection) { this.HintContainer.Visibility = Visibility.Hidden; this.FeatureContainer.Visibility = Visibility.Visible; string content = string.Empty; VpnServerLastConnectionInfos expr_23 = ObjectHolder.CurrentConnectionInfos; if (!string.IsNullOrEmpty((expr_23 != null) ? expr_23.ServerName : null)) { VpnServerLastConnectionInfos expr_3B = ObjectHolder.CurrentConnectionInfos; string arg_5D_0 = (expr_3B != null) ? expr_3B.ServerIp : null; string arg_5D_1 = "-"; VpnServerLastConnectionInfos expr_51 = ObjectHolder.CurrentConnectionInfos; content = arg_5D_0 + arg_5D_1 + ((expr_51 != null) ? expr_51.ServerName : null); } this.CurrentIp.Content = content; this.UpdateCurrentIpControl(this.CurrentIp, content); }