public object GetSettingsBeforeSave() { // Build up a new instance of your settings class here // and fill it with the elements from yout UI. var settings = new WsapmPluginAdvancedSettings(); settings.MyString = this.textBox.Text; return(settings); }
protected override object LoadDefaultSettings() { // Method which get the default settings for the plugin. // // Use this method to provide the default settings for your plugin. // These default settings are loaded when there are no settings available, e.g. the plugin is started for the first time. var settings = new WsapmPluginAdvancedSettings(); settings.MyString = "Default"; return(settings); }