Пример #1
0
        private void cmdEditDocumentsProviderOptions_Click(object sender, EventArgs e)
        {
            IProviderOptionsPlugin plugin = SelectedDocumentsProviderProvider.CreatePluginInstance();

            plugin.OnPluginClosed += new PluginClosedEventHandler(plugin_OnPluginClosed);
            plugin.ProviderOptions = txtDocumentsProviderSettings.Text;
            plugin.ShowPlugin();
        }
Пример #2
0
        void plugin_OnPluginClosed(IProviderOptionsPlugin sender, PluginClosedEventArgs e)
        {
            if (e.OK)
            {
                txtDocumentsProviderSettings.Text = sender.ProviderOptions;
            }

            sender.OnPluginClosed -= plugin_OnPluginClosed;
        }