Beispiel #1
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>();
 }
Beispiel #2
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;
 }