示例#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;
 }
 public AddRegexViewModel(IEventAggregator eventAggregator,
                          IErrorHandler errorHandler,
                          IRegExService regExService,
                          IBusyStateManager busyStateManager,
                          StatusBarViewModel statusBarViewModel)
 {
     _eventAggregator = eventAggregator;
     _errorHandler    = errorHandler;
     _regExService    = regExService;
     BusyStateManager = busyStateManager;
     StatusBarBottom  = statusBarViewModel;
     StatusBarBottom.ConductWith(this);
 }
示例#3
0
 public ShellViewModel(IEventAggregator eventAggregator,
                       MainViewModel mainViewModel,
                       ProfileManagerViewModel profileManagerViewModel,
                       SettingsViewModel settingsViewModel,
                       AboutViewModel aboutViewModel,
                       LeftMenuViewModel leftMenuViewModel,
                       HeaderMenuViewModel headerMenuViewModel,
                       StatusBarViewModel statusBarViewModel)
 {
     _eventAggregator         = eventAggregator;
     _mainViewModel           = mainViewModel;
     _settingsViewModel       = settingsViewModel;
     _aboutViewModel          = aboutViewModel;
     _profileManagerViewModel = profileManagerViewModel;
     LeftMenu        = leftMenuViewModel;
     HeaderMenu      = headerMenuViewModel;
     StatusBarBottom = statusBarViewModel;
     StatusBarBottom.ConductWith(this);
 }