protected async void ButtonOK_Clicked(object sender, EventArgs e)
        {
            JT_TechnicianStatus selectedStatus = _pickerTechnicianStatus.SelectedItem as JT_TechnicianStatus;

            if (selectedStatus.StatusCode != _vm.Technician.CurrentStatus)
            {
                // update the status code
                _vm.UpdateTechnicianStatus(selectedStatus);
            }

            if (App.Database.GetCurrentWorkTicket() == null)
            {
                await Navigation.PopAsync();
            }
            else
            {
                await Navigation.PushAsync(new TicketDetailsPage());
            }
        }
Exemple #2
0
        protected async void ButtonOK_Clicked(object sender, EventArgs e)
        {
            JT_TechnicianStatus selectedStatus = pkrTechnicianStatus.SelectedItem as JT_TechnicianStatus;

            if (selectedStatus.StatusCode != _vm.Technician.CurrentStatus && App.Database.GetCurrentWorkTicket() != null)
            {
                // update the status code
                _vm.UpdateTechnicianStatus(selectedStatus);
            }

            ContentControl contentArea = (ContentControl)this.Parent;

            if (App.Database.GetCurrentWorkTicket() == null)
            {
                contentArea.Content = new SchedulePage();
            }
            else
            {
                contentArea.Content = new TicketDetailsPage(App.Database.GetScheduledAppointment());
            }
        }