/// <summary>
 /// Raised when the user clicks a button to configure a plugin.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void pluginDetailsControl_ConfigurePluginClicked(object sender, PluginEventArgs e)
 {
     e.Plugin.ShowWinFormsOptionsUI();
 }
 /// <summary>
 /// Raised when the user clicks one of the plugin options buttons.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void Plugin_ConfigureClicked(object sender, PluginEventArgs args)
 {
     OnConfigurePluginClicked(args);
 }
 public void PluginEventArgs_Constructor_Initialises_To_Known_State_And_Properties_Work()
 {
     var plugin = new Mock<IPlugin>().Object;
     var args = new PluginEventArgs(plugin);
     Assert.AreSame(plugin, args.Plugin);
 }
 /// <summary>
 /// Raises <see cref="ConfigurePluginClicked"/>.
 /// </summary>
 /// <param name="args"></param>
 protected virtual void OnConfigurePluginClicked(PluginEventArgs args)
 {
     if(ConfigurePluginClicked != null) ConfigurePluginClicked(this, args);
 }