private static void OnClockChoiceMade(DependencyObject d, ClockDisplayMode displayMode) { var instance = (Clock)d; var dragCompletedEventArgs = new ClockChoiceMadeEventArgs(displayMode) { RoutedEvent = ClockChoiceMadeEvent, }; instance.RaiseEvent(dragCompletedEventArgs); }
private void ClockChoiceMadeHandler(object sender, ClockChoiceMadeEventArgs clockChoiceMadeEventArgs) { if (clockChoiceMadeEventArgs.Mode == ClockDisplayMode.Minutes) { TogglePopup(); if (SelectedTime == null) { SelectedTime = _clock.Time; } } }