private void OkButton_OnClick(object sender, RoutedEventArgs e)
 {
     ChosenTime = Time.CreateTime_12HourFormat(Clock.ChosenHour, Clock.ChosenMinute,
                                               AmPmButton.GetCurrentValue() == "PM");
     _initialPickedTime = ChosenTime;
     Hide();
 }
        private void ClockOnTimeChanged(object sender, EventArgs eventArgs)
        {
            var newtime = Time.CreateTime_12HourFormat(Clock.ChosenHour, Clock.ChosenMinute,
                                                       AmPmButton.GetCurrentValue() == "PM");

            TimeLabel.Text = newtime.To12HourFormat(false);
        }