예제 #1
0
        public static async void SelectInspectionButtonClicked(object sender, EventArgs e)
        {
            IInspectionContainer button     = (IInspectionContainer)sender;
            Inspection           inspection = button.inspection;
            //Device.BeginInvokeOnMainThread(async () =>
            //{
            InspectionPage page = new InspectionPage(inspection);
            await App.Navigation.PushAsync(page);

            //});
        }
예제 #2
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);
        }
예제 #3
0
 public GoToQuestionButton(InspectionPage inspectionPage)
 {
     this.inspectionPage = inspectionPage;
     this.Clicked       += clickQuestionButton;
 }