private void cmdEditDocumentsProviderOptions_Click(object sender, EventArgs e) { IProviderOptionsPlugin plugin = SelectedDocumentsProviderProvider.CreatePluginInstance(); plugin.OnPluginClosed += new PluginClosedEventHandler(plugin_OnPluginClosed); plugin.ProviderOptions = txtDocumentsProviderSettings.Text; plugin.ShowPlugin(); }
void plugin_OnPluginClosed(IProviderOptionsPlugin sender, PluginClosedEventArgs e) { if (e.OK) { txtDocumentsProviderSettings.Text = sender.ProviderOptions; } sender.OnPluginClosed -= plugin_OnPluginClosed; }