Exemplo n.º 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);
        }
Exemplo n.º 2
0
        private async void CancelTimerSelector(object sender, RoutedEventArgs e)
        {
            var dialog = (BaseMetroDialog)Resources["TimerSelector"];

            selectedTimerSelectorModel = null;

            await modelHelpers.HideDialogAsync(dialog);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
0
        private async void ConfirmTimerSelector(object sender, RoutedEventArgs e)
        {
            var dialog   = (BaseMetroDialog)Resources["TimerSelector"];
            var comboBox = dialog.FindChild <ComboBox>("Items");

            selectedTimerSelectorModel = (TimerDisplayModel)comboBox.SelectedItem;

            await modelHelpers.HideDialogAsync(dialog);
        }