Ejemplo n.º 1
0
        private void OnResetSettings(object sender, RoutedEventArgs e)
        {
            var result = _messageBoxCreator.ShowYesNo(GeneralOptionsMessages.SettingResetDialog);

            if (result)
            {
                var settingResetType = new SettingResetType {
                    ResetType = GeneralSettingsResetType
                };
                _actionExecutor.ExecuteActionGuarded <SettingsCleaner>(settingResetType.GetDataContextForSettingResultType(_dataContexts, _lifetime));

                var window = Window.GetWindow(this);
                if (window != null)
                {
                    window.Close();
                }
            }
        }
Ejemplo n.º 2
0
 private void OpenUploadWizard()
 {
     _actionExec.ExecuteActionGuarded <UploadWizardAction>();
 }