private async void CancelTimerSelector(object sender, RoutedEventArgs e) { var dialog = (BaseMetroDialog)this.Resources["TimerSelector"]; selectedTimerSelectorModel = null; await DialogCoordinator.Instance.HideMetroDialogAsync(modelHelpers.DialogContext, dialog); }
private async void ConfirmTimerSelector(object sender, RoutedEventArgs e) { var dialog = (BaseMetroDialog)this.Resources["TimerSelector"]; var comboBox = dialog.FindChild<ComboBox>("Items"); selectedTimerSelectorModel = (TimerDisplayModel)comboBox.SelectedItem; await DialogCoordinator.Instance.HideMetroDialogAsync(modelHelpers.DialogContext, dialog); }