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;
        }
Example #3
0
        public MyReservations()
        {
            InitializeComponent();

            if (Device.RuntimePlatform == Device.iOS)
            {
                NavigationPage.SetBackButtonTitle(this, "Back");
            }

            BindingContext = new MyReservationsViewModel()
            {
                Navigation = this.Navigation
            };
        }
Example #4
0
        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;
        }
Example #5
0
 public MyReservationPage()
 {
     InitializeComponent();
     BindingContext = viewModel = new MyReservationsViewModel();
 }