public GraphPageViewModel(INavigationService navigationService, IAnalyticsService analyticsService, IPageDialogService dialogService,
                                  IDataService dataService, IWindowColorService windowColorService) :
            base(navigationService, analyticsService, dialogService)
        {
            DataService        = dataService;
            WindowColorService = windowColorService;

            AddEntryCommand    = new DelegateCommand(ShowAddWeightScreen);
            DeleteEntryCommand = new DelegateCommand <WeightEntry>(ConfirmDeleteItem);
        }
        public DailyInfoPageViewModel(INavigationService navigationService, ISettingsService settingsService, IAnalyticsService analyticsService, IPageDialogService dialogService,
                                      IDataService dataService, IWindowColorService windowColorService) :
            base(navigationService, settingsService, analyticsService, dialogService)
        {
            // Store off injected services
            DataService        = dataService;
            WindowColorService = windowColorService;

            AddEntryCommand = new DelegateCommand(ShowAddWeightScreen);
            SetGoalCommand  = new DelegateCommand(ShowSetGoalScreen);
        }
예제 #3
0
        public MenuPageViewModel(INavigationService navigationService, ISettingsService settingsService, IAnalyticsService analyticsService, IPageDialogService dialogService, IDataService dataService, IWindowColorService windowColorService, IReviewService reviewService) :
            base(navigationService, settingsService, analyticsService, dialogService)
        {
            // Store off services
            DataService        = dataService;
            WindowColorService = windowColorService;
            ReviewService      = reviewService;

            // Build up menu
            MenuEntries = BuildMenu();
        }
        public DebugPageViewModel(INavigationService navigationService, IAnalyticsService analyticsService, IPageDialogService dialogService, IDataService dataService, IEventAggregator eventAggregator, IWindowColorService windowColorService) :
            base(navigationService, analyticsService, dialogService)
        {
            // Store off injected services
            DataService        = dataService;
            EventAggregator    = eventAggregator;
            WindowColorService = windowColorService;

            // Wire up commands
            CloseCommand           = new DelegateCommand(Close);
            TurnGrayCommand        = new DelegateCommand(TurnGray);
            TurnGreenCommand       = new DelegateCommand(TurnGreen);
            TurnRedCommand         = new DelegateCommand(TurnRed);
            TestEndingAGoalCommand = new DelegateCommand(TestEndingAGoal);
            TestRealDataSetCommand = new DelegateCommand(TestRealDataSet);
        }