public ConfigureKillSwitchDialogViewModel()
 {
     this.PreferencesModel = ServiceLocatorExtensions.ResolveType <IPreferencesModel>(ObjectExtensions.GetServiceLocator(this), null);
     if (this.PreferencesModel != null)
     {
         this.KillSwitchMode        = this.PreferencesModel.KillSwitchMode;
         this.KillLanTrafficEnabled = this.PreferencesModel.KillLanTrafficEnabled;
     }
 }
Exemplo n.º 2
0
 public AddParametersDialogViewModel()
 {
     this.PreferencesModel = ServiceLocatorExtensions.ResolveType <IPreferencesModel>(ObjectExtensions.GetServiceLocator(this), null);
     if (this.PreferencesModel != null)
     {
         OpenVpnCommandLineConfig expr_30 = new OpenVpnCommandLineConfig();
         expr_30.set_SelectedMtu(this.PreferencesModel.SelectedMtu);
         expr_30.set_SelectedOpenVpnLogVerbosityLevel(this.PreferencesModel.SelectedOpenVpnLogVerbosityLevel);
         expr_30.set_SelectedRouteDelay(this.PreferencesModel.SelectedRouteDelay);
         expr_30.set_SelectedTlsTimeout(this.PreferencesModel.SelectedTlsTimeout);
         OpenVpnCommandLineConfig commandLineConfig = expr_30;
         this._dummyCommandLine = base.VyprVPNController.GetDummyOpenVpnCommandLine(this.PreferencesModel.Protocol, commandLineConfig);
         this.ParametersInput   = this.PreferencesModel.AdditionalOpenVpnParameters;
     }
 }