Пример #1
0
 public void OnNavigatedTo(NavigationContext navigationContext)
 {
     TabChanged = delegate {};
     _controller.Init(this);
     OverallStatsViewModel.OnNavigatedTo(navigationContext);
     DailyStatsViewModel.OnNavigatedTo(navigationContext);
 }
        public void Init(OverallStatsViewModel vm)
        {
            _vm = vm;

            _vm.SeriesPickerViewModel.PropertyChanged += (sender, args) =>
            {
                if (_vm.IsDirty)
                {
                    UpdateChart();
                }
            };

            LoadScreenData();
        }
Пример #3
0
 public StatisticsViewModel(StatisticsViewController controller, OverallStatsViewModel overallStatsViewModel, DailyStatsViewModel dailyStatsViewModel)
 {
     _controller           = controller;
     OverallStatsViewModel = overallStatsViewModel;
     DailyStatsViewModel   = dailyStatsViewModel;
 }