Ejemplo n.º 1
0
 public static DialogResult ChangeSettings(IWin32Window parent, DirectorSettings settings)
 {
     using (var f = new FEditorSettings()) {
         f._editorSettings = settings;
         f.MonitorLocalizationChange();
         f.Localize(LanguageManager.Current);
         var r = f.ShowDialog(parent);
         f.UnmonitorLocalizationChange();
         return(r);
     }
 }
        private void CmdToolsSettings_Executed(object sender, ExecutedEventArgs e)
        {
            var settings = DirectorSettingsManager.CurrentSettings;
            var r        = FEditorSettings.ChangeSettings(this, settings);

            if (r == DialogResult.Cancel)
            {
                return;
            }
            // Apply settings.
            ApplySettings(settings);
        }