C# 클래스 Nexus.Client.ModManagement.Scripting.XmlScript.UI.Controls.NodeEditors.ConditionalTypeEditor

파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

Private Properties

프로퍼티 타입 설명
EditCommand_Executed void
GetSelectedConditionalTypePattern Nexus.Client.ModManagement.Scripting.XmlScript.ConditionalOptionTypeResolver.ConditionalTypePattern
PatternAdded void
PatternDeleted void
PatternEdited void
lvwConditionalTypes_Resize void
lvwConditionalTypes_SelectedIndexChanged void

공개 메소드들

메소드 설명
ConditionalTypeEditor ( ) : System

The default constructor.

ConditionalTypeEditor ( Nexus.Client.ModManagement.Scripting.XmlScript.UI.Controls.NodeEditors.ConditionalTypeEditorVM p_vmlViewModel ) : System

A simple constructor that initializes the view with its dependencies.

GetViewModel ( ) : IViewModel

Gets the view model of the editor.

보호된 메소드들

메소드 설명
AddConditionalTypePattern ( Nexus.Client.ModManagement.Scripting.XmlScript.ConditionalOptionTypeResolver.ConditionalTypePattern p_ctpPattern ) : void

Binds a ConditionalTypePattern to the list displaying the ConditionalOptionTypeResolver's patterns.

AdjustColumnWidths ( ) : void

This resizes the columns of the pattern list.

This sizes the type column to its content, and then resizes the remaining columns to take up the rest of the space.

BindTypeResolver ( ConditionalOptionTypeResolver p_ctpTypeResolver ) : void

Binds the ConditionalOptionTypeResolver being edited to the UI.

비공개 메소드들

메소드 설명
EditCommand_Executed ( object p_objCommand, EventArgs p_eeaArguments ) : void

Handles the Command{ConditionalTypePattern}.Executed event of the edit command.

This passes focus to the pattern editor control.

GetSelectedConditionalTypePattern ( ) : Nexus.Client.ModManagement.Scripting.XmlScript.ConditionalOptionTypeResolver.ConditionalTypePattern

The retrieves the ConditionalTypePattern currently selected in the list of patterns.

PatternAdded ( object sender, EventArgs e ) : void

Handles the NodeEditors.ConditionalTypeEditorVM.PatternAdded event of the view model.

This binds the new ConditionalTypePattern to the list of patterns.

PatternDeleted ( object sender, EventArgs e ) : void

Handles the NodeEditors.ConditionalTypeEditorVM.PatternDeleted event of the view model.

This removes the deleted ConditionalTypePattern from the list of patterns.

PatternEdited ( object sender, EventArgs e ) : void

Handles the NodeEditors.ConditionalTypeEditorVM.PatternEdited event of the view model.

This updates the binding to the list of patterns of the edited ConditionalTypePattern.

lvwConditionalTypes_Resize ( object sender, EventArgs e ) : void

Hanldes the Control.Resize event of the pattern list view.

This adjusts the column widths.

lvwConditionalTypes_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the ListView.SelectedIndexChanged of the pattern list view.

This updates the executable status based on whether a pattern is selected.

메소드 상세

AddConditionalTypePattern() 보호된 메소드

Binds a ConditionalTypePattern to the list displaying the ConditionalOptionTypeResolver's patterns.
protected AddConditionalTypePattern ( Nexus.Client.ModManagement.Scripting.XmlScript.ConditionalOptionTypeResolver.ConditionalTypePattern p_ctpPattern ) : void
p_ctpPattern Nexus.Client.ModManagement.Scripting.XmlScript.ConditionalOptionTypeResolver.ConditionalTypePattern The to bind.
리턴 void

AdjustColumnWidths() 보호된 메소드

This resizes the columns of the pattern list.
This sizes the type column to its content, and then resizes the remaining columns to take up the rest of the space.
protected AdjustColumnWidths ( ) : void
리턴 void

BindTypeResolver() 보호된 메소드

Binds the ConditionalOptionTypeResolver being edited to the UI.
protected BindTypeResolver ( ConditionalOptionTypeResolver p_ctpTypeResolver ) : void
p_ctpTypeResolver ConditionalOptionTypeResolver The being edited.
리턴 void

ConditionalTypeEditor() 공개 메소드

The default constructor.
public ConditionalTypeEditor ( ) : System
리턴 System

ConditionalTypeEditor() 공개 메소드

A simple constructor that initializes the view with its dependencies.
public ConditionalTypeEditor ( Nexus.Client.ModManagement.Scripting.XmlScript.UI.Controls.NodeEditors.ConditionalTypeEditorVM p_vmlViewModel ) : System
p_vmlViewModel Nexus.Client.ModManagement.Scripting.XmlScript.UI.Controls.NodeEditors.ConditionalTypeEditorVM The view model that provides the data and operations for this view.
리턴 System

GetViewModel() 공개 메소드

Gets the view model of the editor.
public GetViewModel ( ) : IViewModel
리턴 IViewModel