protected async void ButtonClockIn_Clicked(object sender, EventArgs e)
        {
            if (_pickerTechnicianStatus.SelectedIndex < 0)
            {
                //await new MessageBox ("Status", "Select a technician status.", "OK");
                //return;
                MessageBoxResult result = System.Windows.MessageBox.Show("Select a technician status.", "Status", MessageBoxButton.OK);
                if (result == MessageBoxResult.OK)
                {
                    return;
                }
            }
            if (_pickerTicketStatus.SelectedIndex < 0)
            {
                // await DisplayAlert("Status", "Select a ticket status.", "OK");
                // return;
                MessageBoxResult result = System.Windows.MessageBox.Show("Select a ticket status.", "Status", MessageBoxButton.OK);
                if (result == MessageBoxResult.OK)
                {
                    return;
                }
            }

            // dch rkl 11/1/2016 use textbox instead of datetime picker for times BEGIN
            // Validate Arrive Time
            DateTime dtArriveTime;

            if (DateTime.TryParse(_textArriveTime.Text, out dtArriveTime) == false)
            {
                MessageBoxResult result = System.Windows.MessageBox.Show("Enter a valid Arrive Time.", "Arrive Time", MessageBoxButton.OK);
                if (result == MessageBoxResult.OK)
                {
                    return;
                }
            }
            // dch rkl 11/1/2016 use textbox instead of datetime picker for times BEGIN

            JT_TechnicianStatus   selectedTechnicianStatus = _pickerTechnicianStatus.SelectedItem as JT_TechnicianStatus;
            JT_MiscellaneousCodes selectedTicketStatus     = _pickerTicketStatus.SelectedItem as JT_MiscellaneousCodes;

            // dch rkl 11/1/2016 use textbox instead of datetime picker for times
            //TimeSpan timeofday = ((DateTime)_pickerArriveTime.Value).TimeOfDay;
            TimeSpan timeofday = dtArriveTime.TimeOfDay;

            // dch rkl 11/1/2016 use textbox instead of datetime picker for times END

            _vm.ClockIn(timeofday, selectedTechnicianStatus, selectedTicketStatus);
            ContentControl contentArea = (ContentControl)this.Parent;

            _vm.ScheduleDetail.IsCurrent = true;            // dch rkl 01/12/2017 This is what makes the Clock Out Button Appear
            contentArea.Content          = new TicketDetailsPage(_vm.ScheduleDetail);
            //await Navigation.PopToRootAsync();
        }
        protected async void ButtonClockIn_Clicked(object sender, EventArgs e)
        {
            if (_pickerTechnicianStatus.SelectedIndex < 0)
            {
                await DisplayAlert("Status", "Select a technician status.", "OK");

                return;
            }
            if (_pickerTicketStatus.SelectedIndex < 0)
            {
                await DisplayAlert("Status", "Select a ticket status.", "OK");

                return;
            }

            JT_TechnicianStatus   selectedTechnicianStatus = _pickerTechnicianStatus.SelectedItem as JT_TechnicianStatus;
            JT_MiscellaneousCodes selectedTicketStatus     = _pickerTicketStatus.SelectedItem as JT_MiscellaneousCodes;



            _vm.ClockIn(_pickerArriveTime.Time, selectedTechnicianStatus, selectedTicketStatus);
            await Navigation.PopToRootAsync();
        }