/// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public MainViewModel(IModel model, ISearchViewModel searchViewModel,
                      IStatisticsViewModel statisticsViewModel)
 {
     _model               = model;
     _searchViewModel     = searchViewModel;
     _statisticsViewModel = statisticsViewModel;
     CurrentView          = _searchViewModel as ViewModelBase;
 }
Ejemplo n.º 2
0
        public NotificationService(IEventAggregator eventAggregator, IStatisticsViewModel statistics, IUserSettingsProvider userSettings, IWorkHandler workHandler)
        {
            _eventAggregator = eventAggregator;
            _statistics = statistics;
            _userSettings = userSettings;
            _workHandler = workHandler;

            eventAggregator.GetEvent<ShellInitializedEvent>().Subscribe(OnShellInitialized);
        }
Ejemplo n.º 3
0
 public AutoUpdateDialog(IWorkHandler workHandler, IWindowManager windowManager, IStatisticsViewModel statistics)
 {
     _workHandler   = workHandler;
     _windowManager = windowManager;
     _statistics    = statistics;
     Owner          = Application.Current.MainWindow;
     InitializeComponent();
     Loaded += OnLoaded;
 }
Ejemplo n.º 4
0
        public NotificationService(IEventAggregator eventAggregator, IStatisticsViewModel statistics, IUserSettingsProvider userSettings, IWorkHandler workHandler)
        {
            _eventAggregator = eventAggregator;
            _statistics      = statistics;
            _userSettings    = userSettings;
            _workHandler     = workHandler;

            eventAggregator.GetEvent <ShellInitializedEvent>().Subscribe(OnShellInitialized);
        }
 public TransferManagerViewModel(IUserSettingsProvider userSettingsProvider, IStatisticsViewModel statistics)
 {
     _userSettingsProvider   = userSettingsProvider;
     _statistics             = statistics;
     _elapsedTimeMeter.Tick += OnTransferProgressTick;
     PauseCommand            = new DelegateCommand(ExecutePauseCommand);
     ContinueCommand         = new DelegateCommand(ExecuteContinueCommand);
     EventAggregator.GetEvent <TransferProgressChangedEvent>().Subscribe(OnTransferProgressChanged);
     EventAggregator.GetEvent <ShowCorrespondingErrorEvent>().Subscribe(OnShowCorrespondingError);
 }
Ejemplo n.º 6
0
 public UserStatisticsParticipationDialog(IWorkHandler workHandler, IWindowManager windowManager, IStatisticsViewModel statisticsViewModel)
 {
     _workHandler = workHandler;
     Owner        = Application.Current.MainWindow;
     InitializeComponent();
     if (!UserSettings.DisableUserStatisticsParticipation.HasValue)
     {
         return;
     }
     if (UserSettings.DisableUserStatisticsParticipation == true)
     {
         No.IsChecked = true;
     }
     else if (UserSettings.DisableUserStatisticsParticipation == false)
     {
         Yes.IsChecked = true;
     }
 }