public ActionResult ReservationRecords() { string user_id = User.Identity.GetUserId(); List <ReservationRecord> records = repo.getReservations(user_id); MyReservationsViewModel reservationsViewModel = new MyReservationsViewModel(records); return(View(reservationsViewModel)); }
public MyReservationsPage(UserReservationsModel reservationsModel) { this.InitializeComponent(); var viewModel = new MyReservationsViewModel(reservationsModel, new NavigationService(this.Navigation)); viewModel.ShowInfoMessage += this.ShowInfoMessage; viewModel.ShowRemoveConfirmationDialog += this.ShowRemoveConfirmationDialog; this.BindingContext = viewModel; }
public MyReservations() { InitializeComponent(); if (Device.RuntimePlatform == Device.iOS) { NavigationPage.SetBackButtonTitle(this, "Back"); } BindingContext = new MyReservationsViewModel() { Navigation = this.Navigation }; }
public MyReservationsView() { InitializeComponent(); BindingContext = model = new MyReservationsViewModel(); backImage.Source = ImageSource.FromResource("OpenRoads.Mobile.Resources.backIcon.png"); backImage.WidthRequest = 40; backImage.HeightRequest = 40; backImage.CornerRadius = 25; backImage.BackgroundColor = Color.White; SignOutBtn.Padding = new Thickness(3); SignOutBtn.CornerRadius = 3; }
public MyReservationPage() { InitializeComponent(); BindingContext = viewModel = new MyReservationsViewModel(); }