C# Class Nexus.Client.ModManagement.Scripting.UI.SelectForm

ファイルを表示 Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
SelectForm ( IList p_lstOptions, string p_strTitle, bool p_booMultiSelect ) : 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
AddOption ( SelectOption p_sopOption ) : void

Adds an option to the list of options.

AdjustListViewColumnWidth ( ) : void

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

HidePanels ( ) : void

Hides the description and image panels if they are empty.

InitializeComponent ( ) : void

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

LoadOptions ( IList p_lstOptions ) : void

Loads the options into the form.

butOK_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the OK button.

This closes the form.

lvwOptions_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the ListView.SelectedIndexChanged event of the list view of options.

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

lvwOptions_SizeChanged ( object sender, EventArgs e ) : void

Handles the Control.SizeChanged event of the list view of options.

This ensures that the column of the list view of options 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

SelectForm() public method

A simple constructor that initializes the object with the given values.
public SelectForm ( IList p_lstOptions, string p_strTitle, bool p_booMultiSelect ) : System
p_lstOptions IList The list of option to display in the form.
p_strTitle string The title of the form.
p_booMultiSelect bool Whether to allow the selection of multiple options.
return System