Exemple #1
0
 public WiFiSearchViewModel(IEventAggregator eventAggregator,
                            IWindowManager windowManager,
                            MainController mainController,
                            IErrorHandler errorHandler,
                            PropertiesViewModel propertiesViewModel,
                            PasswordViewModel passwordViewModel,
                            StatusBarViewModel statusBarViewModel,
                            IConfigurationProvider configurationProvider,
                            IBusyStateManager busyStateManager,
                            IProfileService profileService)
 {
     _eventAggregator       = eventAggregator;
     _windowManager         = windowManager;
     _mainController        = mainController;
     _errorHandler          = errorHandler;
     _propertiesViewModel   = propertiesViewModel;
     _passwordViewModel     = passwordViewModel;
     _configurationProvider = configurationProvider;
     _profileService        = profileService;
     StatusBarBottom        = statusBarViewModel;
     BusyStateManager       = busyStateManager;
     StatusBarBottom.ConductWith(this);
     WiFiAccessPointViewSource         = new CollectionViewSource();
     WiFiAccessPointViewSource.Filter += ApplyFilter;
 }
Exemple #2
0
 public MainViewModel(IEventAggregator eventAggregator,
                      IWindowManager windowManager,
                      MainController mainController,
                      IErrorHandler errorHandler,
                      WiFiSearchViewModel wiFiSearchViewModel,
                      PropertiesViewModel propertiesViewModel,
                      PasswordViewModel passwordViewModel,
                      IStorageService storageService,
                      IConfigurationProvider configurationProvider,
                      IBusyStateManager busyStateManager,
                      IEnumerable <IPasswordProvider> passwordProviders)
 {
     _eventAggregator       = eventAggregator;
     _windowManager         = windowManager;
     _errorHandler          = errorHandler;
     _mainController        = mainController;
     _wiFiSearchViewModel   = wiFiSearchViewModel;
     _propertiesViewModel   = propertiesViewModel;
     _passwordViewModel     = passwordViewModel;
     _storageService        = storageService;
     _configurationProvider = configurationProvider;
     BusyStateManager       = busyStateManager;
     PasswordProviders      = new ObservableCollection <IPasswordProvider>(passwordProviders);
     AccessPoints           = new ObservableCollection <AccessPoint>();
 }
Exemple #3
0
 public ProfileManagerViewModel(MainController mainController,
                                IEventAggregator eventAggregator,
                                IWindowManager windowManager,
                                IErrorHandler errorHandler,
                                IProfileService profileService,
                                IBusyStateManager busyStateManager,
                                PropertiesViewModel propertiesViewModel,
                                IConfigurationProvider configurationProvider)
 {
     _mainController                = mainController;
     _eventAggregator               = eventAggregator;
     _errorHandler                  = errorHandler;
     _profileService                = profileService;
     BusyStateManager               = busyStateManager;
     _windowManager                 = windowManager;
     _propertiesViewModel           = propertiesViewModel;
     _configurationProvider         = configurationProvider;
     WiFiProfilesViewSource         = new CollectionViewSource();
     WiFiProfilesViewSource.Filter += ApplyFilter;
 }