示例#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();
            }
        }
示例#2
0
 public SettingsTypeDescriptor(OptionsForm optionsForm)
 {
     this.optionsForm   = optionsForm;
     this.propertyCache = new List <PropertyDescriptor>();
 }
示例#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();
            }
        }
示例#4
0
 public SettingsTypeDescriptor(OptionsForm optionsForm)
 {
     this.optionsForm = optionsForm;
     this.propertyCache = new List<PropertyDescriptor>();
 }