Esempio n. 1
0
        private void ShowSettingsDialog_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            IDisplayOptions     displayOptions     = _mainWindowModel.DisplayOptions;
            IPhoneSelectOptions phoneSelectOptions = _mainWindowModel.PhoneSelectOptions;
            OptionsDialogView   optionsDialog      = new OptionsDialogView(displayOptions, phoneSelectOptions);

            optionsDialog.Owner          = this;
            optionsDialog.SelectedDevice = _deviceInfo;
            optionsDialog.ShowDialog();

            if (optionsDialog.DialogResult == true)
            {
                if (optionsDialog.SelectedDevice != _deviceInfo)
                {
                    _deviceInfo = optionsDialog.SelectedDevice;
                    PerformRefresh();
                }
            }
        }
Esempio n. 2
0
        private void ShowSettingsDialog_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            IDisplayOptions displayOptions = _mainWindowModel.DisplayOptions;
            IPhoneSelectOptions phoneSelectOptions = _mainWindowModel.PhoneSelectOptions;
            OptionsDialogView optionsDialog = new OptionsDialogView(displayOptions, phoneSelectOptions);

            optionsDialog.Owner = this;
            optionsDialog.SelectedDevice = _deviceInfo;
            optionsDialog.ShowDialog();

            if (optionsDialog.DialogResult == true)
            {
                if (optionsDialog.SelectedDevice != _deviceInfo)
                {
                    _deviceInfo = optionsDialog.SelectedDevice;
                    PerformRefresh();
                }
            }
        }