public OverviewViewModel([NotNull] IMobileSummaryDataManager dataManager)
 {
     if (dataManager == null)
     {
         throw new ArgumentNullException(nameof(dataManager));
     }
     this.dataManager              = dataManager;
     this.dataManager.DataUpdated += OnDataUpdated;
 }
Ejemplo n.º 2
0
 public MainViewModel([NotNull] OverviewViewModel overview, [NotNull] BucketsListViewModel bucketsViewModel, [NotNull] IMobileSummaryDataManager dataManager)
 {
     if (overview == null)
     {
         throw new ArgumentNullException(nameof(overview));
     }
     if (bucketsViewModel == null)
     {
         throw new ArgumentNullException(nameof(bucketsViewModel));
     }
     if (dataManager == null)
     {
         throw new ArgumentNullException(nameof(dataManager));
     }
     this.dataManager              = dataManager;
     this.dataManager.DataUpdated += OnDataUpdated;
     OverviewViewModel             = overview;
     BucketsListViewModel          = bucketsViewModel;
 }