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