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