Example #1
0
 public PinViewModel(
     string countryCode,
     CountryConnector countryConnector,
     PinFactory pinFactory) : base(countryCode)
 {
     _countryConnector = countryConnector;
     _pinFactory       = pinFactory;
 }
Example #2
0
 public PinFactory(
     MapLineManager mapLineManager,
     IUserStorage userStorage,
     ServerManager serverManager,
     ServerConnector serverConnector,
     CountryConnector countryConnector)
 {
     _serverManager    = serverManager;
     _serverConnector  = serverConnector;
     _countryConnector = countryConnector;
     _mapLineManager   = mapLineManager;
     _userStorage      = userStorage;
 }
Example #3
0
        public CountriesViewModel(
            IAppSettings appSettings,
            ServerListFactory serverListFactory,
            App app,
            IDialogs dialogs,
            ServerConnector serverConnector,
            CountryConnector countryConnector)
        {
            _appSettings       = appSettings;
            _serverListFactory = serverListFactory;
            _app              = app;
            _dialogs          = dialogs;
            _serverConnector  = serverConnector;
            _countryConnector = countryConnector;

            Connect                 = new RelayCommand <ServerItemViewModel>(ConnectAction);
            ConnectCountry          = new RelayCommand <IServerCollection>(ConnectCountryAction);
            Expand                  = new RelayCommand <IServerCollection>(ExpandAction);
            ToggleSecureCoreCommand = new RelayCommand(ToggleSecureCoreAction);
            ClearSearchCommand      = new RelayCommand(ClearSearchAction);
        }
Example #4
0
        public CountriesViewModel(
            IAppSettings appSettings,
            ServerListFactory serverListFactory,
            App app,
            ServerConnector serverConnector,
            CountryConnector countryConnector,
            QuickSettingsViewModel quickSettingsViewModel,
            IVpnReconnector vpnReconnector)
        {
            _appSettings       = appSettings;
            _serverListFactory = serverListFactory;
            _app                   = app;
            _serverConnector       = serverConnector;
            _countryConnector      = countryConnector;
            QuickSettingsViewModel = quickSettingsViewModel;
            _vpnReconnector        = vpnReconnector;

            Connect            = new RelayCommand <ServerItemViewModel>(ConnectAction);
            ConnectCountry     = new RelayCommand <IServerCollection>(ConnectCountryAction);
            Expand             = new RelayCommand <IServerCollection>(ExpandAction);
            ClearSearchCommand = new RelayCommand(ClearSearchAction);
        }