internal override Task InitializeAsync(object parameter)
        {
            this.viewModel  = (ReservationsViewModel)parameter;
            this.FormSource = this.viewModel.Reservation;

            if (this.viewModel.IsNewReservation)
            {
                this.PageTitle = "New Reservation";
            }
            else
            {
                this.PageTitle = "Edit Reservation";
            }

            return(base.InitializeAsync(parameter));
        }
Exemplo n.º 2
0
        protected override Task InitializeAsyncOverride(object parameter)
        {
            this.viewModel  = (ReservationsViewModel)parameter;
            this.FormSource = this.viewModel.Reservation;

            if (this.viewModel.IsNewReservation)
            {
                this.PageTitle = "New Reservation";
            }
            else
            {
                this.PageTitle = "Edit Reservation";
            }

            return(Task.FromResult(true));
        }