public void GetUpdatedFormattingOptionsFromUser()
        {
            if (_getKeyBindingScopeNameDelegate != null)
            {
                GetVSHotkeyIntoSettings();
            }

            PluginShared.SettingsForm settings = new PluginShared.SettingsForm(Properties.Settings.Default, Assembly.GetExecutingAssembly(), _generalResourceManager.GetString("ProjectAboutDescription"), _getKeyBindingScopeNameDelegate == null ? null : new PluginShared.SettingsForm.FixHotkeyDefault(FixHotkeyDefault));

            if (settings.ShowDialog() == DialogResult.OK)
            {
                _formattingManager = PluginShared.Utils.GetFormattingManager(Properties.Settings.Default);
                if (_getKeyBindingScopeNameDelegate != null)
                {
                    UpdateSettingsHotkeyIntoVS();
                }
            }

            settings.Dispose();
        }
 internal static void formattingOptionsCommand()
 {
     SettingsForm settings = new SettingsForm(Properties.Settings.Default, Assembly.GetExecutingAssembly(), _generalResourceManager.GetString("ProjectAboutDescription"));
     if (settings.ShowDialog() == DialogResult.OK)
     {
         _formattingManager = Utils.GetFormattingManager(Properties.Settings.Default);
     }
     settings.Dispose();
 }
 private void MenuOptionsCallback(object sender, EventArgs e)
 {
     GetFormatHotkey();
     SettingsForm settings = new SettingsForm(Properties.Settings.Default, Assembly.GetExecutingAssembly(), _generalResourceManager.GetString("ProjectAboutDescription"), new SettingsForm.GetTextEditorKeyBindingScopeName(GetTextEditorKeyBindingScopeName));
     if (settings.ShowDialog() == DialogResult.OK)
     {
         SetFormatHotkey();
         _formattingManager = Utils.GetFormattingManager(Properties.Settings.Default);
     }
 }