Ejemplo n.º 1
0
        public HomeViewModel(FestiSpecProvider dataServer)
        {
            _dataServer = dataServer;
            // Pages
            _inspectionPage   = new InspectionPage();
            _inspectorPage    = new InspectorPage();
            _questionListPage = new QuestionListPage();
            _customerListPage = new CustomerListPage();
            _offertePage      = new OffertePage();
            _homePage         = new HomePage();
            CurrentPage       = _homePage;

            // Commands
            OpenHome           = new RelayCommand(() => CurrentPage = _homePage);
            OpenInspectionPage = new RelayCommand(() => CurrentPage = _inspectionPage);
            OpenInspectorPage  = new RelayCommand(() => CurrentPage = _inspectorPage);
            OpenQuestionList   = new RelayCommand(() => CurrentPage = _questionListPage);
            OpenCustomerList   = new RelayCommand(() => CurrentPage = _customerListPage);
            OpenOffertes       = new RelayCommand(() => CurrentPage = _offertePage);
            LogoutUser         = new RelayCommand <HomeWindow>(Logout);
        }
Ejemplo n.º 2
0
 public App()
 {
     // The root page of your application
     MainPage = new QuestionListPage();
 }