public StatisticsWindow(ServiceManager serviceManager)
        {
            InitializeComponent();
            StatisticsWindowViewModel vm = new StatisticsWindowViewModel(serviceManager);

            this.DataContext = vm;
        }
        public ViewModelLocator()
        {
            //Initialsing Model ViewModel
            RootViewModel = new RootViewModel();


            // Initialising Window View Models
            MainWindowVM = new MainWindowViewModel(RootViewModel);
            //NewClientWindowVM = new NewClientWindowViewModel(RootVM);
            CardOverViewWindowVM             = new CardOverViewWindowViewModel(RootViewModel);
            LineGraphVM                      = new LineGraphViewModel();
            StatisticsWindowVM               = new StatisticsWindowViewModel(RootViewModel, LineGraphVM);
            StatisticsTopicSelectionWindowVM = new StatisticsTopicSelectionWindowViewModel(RootViewModel, StatisticsWindowVM);
            LearningCardWindowVM             = new LearningCardWindowViewModel(MainWindowVM);
            PrintWindowVM                    = new PrintWindowViewModel(RootViewModel);
            NewCardWindowVM                  = new NewCardWindowViewModel(MainWindowVM);
            NewTopicWindowVM                 = new NewTopicWindowViewModel(RootViewModel);
        }
Exemple #3
0
 public StatisticsWindow()
 {
     InitializeComponent();
     DataContext = new StatisticsWindowViewModel();
 }