Esempio n. 1
0
        void ShowOptionsForm()
        {
            List <IPluginSettings> settingsList = GetSettingsList();

            if (optionsForm == null)
            {
                optionsForm = new OptionsForm();
            }

            optionsForm.Settings = settingsList;

            ResetSettings(settingsList);

            if (optionsForm.ShowDialog(this) == DialogResult.OK)
            {
                SaveSettings(settingsList);
                ApplySettings();
            }
        }
Esempio n. 2
0
 public SettingsTypeDescriptor(OptionsForm optionsForm)
 {
     this.optionsForm   = optionsForm;
     this.propertyCache = new List <PropertyDescriptor>();
 }
Esempio n. 3
0
        void ShowOptionsForm()
        {
            List<IPluginSettings> settingsList = GetSettingsList();

            if (optionsForm == null)
                optionsForm = new OptionsForm();

            optionsForm.Settings = settingsList;

            ResetSettings(settingsList);

            if (optionsForm.ShowDialog(this) == DialogResult.OK)
            {
                SaveSettings(settingsList);
                ApplySettings();
            }
        }
Esempio n. 4
0
 public SettingsTypeDescriptor(OptionsForm optionsForm)
 {
     this.optionsForm = optionsForm;
     this.propertyCache = new List<PropertyDescriptor>();
 }