C# 클래스 Nexus.Client.ModManagement.Scripting.UI.SelectForm

파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
SelectForm ( IList p_lstOptions, string p_strTitle, bool p_booMultiSelect ) : System

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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
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.

메소드 상세

Dispose() 보호된 메소드

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

SelectForm() 공개 메소드

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.
리턴 System