C# Class Nexus.Client.ModManagement.Scripting.XmlScript.UI.OptionFormStep

Displays the optional plugin groups for a specific step in a mod's install.
Inheritance: System.Windows.Forms.UserControl
Exibir arquivo Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
OptionFormStep ( ConditionStateManager p_csmStateManager, IList p_lstGroups ) : System

A simple constructor that initializes the object with the given values.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddGroup ( OptionGroup p_ogpGroup ) : System.Windows.Forms.ListViewGroup

Adds a group to the list of plugins.

AddOption ( System.Windows.Forms.ListViewGroup p_lvgGroup, Option p_optOption ) : void

Adds an option to the list of options.

AdjustListViewColumnWidth ( ) : void

Sizes the column of the list view of plugins to fill the control.

CheckDefaults ( ) : void

Checks the plugins that should be checked by default.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LoadOptions ( IList p_lstGroups ) : void

Loads the options into the form.

lvwPlugins_ItemCheck ( object sender, System.Windows.Forms.ItemCheckEventArgs e ) : void

Handles the ItemCheck event of the list view of plugins.

This enforces any restrictions on the selection of plugins.

lvwPlugins_ItemChecked ( object sender, System.Windows.Forms.ItemCheckedEventArgs e ) : void

Handles the ItemChecked event of the list view of plugins.

This enforces any restrictions on the selection of plugins.

lvwPlugins_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the list view of plugins.

This changes the displayed description to that of the selected plugin.

lvwPlugins_SizeChanged ( object sender, EventArgs e ) : void

Handles the SizeChanged event of the list view of plugins.

This ensures that the column of the list view of plugins fills the control.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

OptionFormStep() public method

A simple constructor that initializes the object with the given values.
public OptionFormStep ( ConditionStateManager p_csmStateManager, IList p_lstGroups ) : System
p_csmStateManager ConditionStateManager The install state manager.
p_lstGroups IList The option groups to display.
return System