コード例 #1
0
        private async void CancelTimerSelector(object sender, RoutedEventArgs e)
        {
            var dialog = (BaseMetroDialog)this.Resources["TimerSelector"];

            selectedTimerSelectorModel = null;

            await DialogCoordinator.Instance.HideMetroDialogAsync(modelHelpers.DialogContext, dialog);
        }
コード例 #2
0
        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);
        }