예제 #1
0
        private static void OnClockChoiceMade(DependencyObject d, ClockDisplayMode displayMode)
        {
            var instance = (Clock)d;
            var dragCompletedEventArgs = new ClockChoiceMadeEventArgs(displayMode)
            {
                RoutedEvent = ClockChoiceMadeEvent,
            };

            instance.RaiseEvent(dragCompletedEventArgs);
        }
예제 #2
0
 private void ClockChoiceMadeHandler(object sender, ClockChoiceMadeEventArgs clockChoiceMadeEventArgs)
 {
     if (clockChoiceMadeEventArgs.Mode == ClockDisplayMode.Minutes)
     {
         TogglePopup();
         if (SelectedTime == null)
         {
             SelectedTime = _clock.Time;
         }
     }
 }