C# Class Nexus.Client.ModManagement.Scripting.XmlScript.UI.Controls.NodeEditors.ConditionalTypePatternEditor

Edits a ConditionalTypePattern.
Inheritance: System.Windows.Forms.UserControl
Show file Open project: NexusMods/NexusModManager-4.5

Private Properties

Property Type Description
ConditionalTypePatternValidated void
InitializeComponent void
ViewModel_PropertyChanged void
butSave_Click void

Public Methods

Method Description
ConditionalTypePatternEditor ( ) : System

The default constructor.

Protected Methods

Method Description
BindConditionalTypePattern ( Nexus.Client.ModManagement.Scripting.XmlScript.ConditionalOptionTypeResolver.ConditionalTypePattern p_ctpPattern ) : void

Binds the ConditionalTypePattern being edited to the UI.

Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ConditionalTypePatternValidated ( object sender, EventArgs e ) : void

This handles the ConditionalTypePatternEditorVM.ConditionalTypePatternValidated event of the view model.

This displays any validation errors.

InitializeComponent ( ) : void

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

ViewModel_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the view model.

This binds the UI to the updated ConditionalTypePattern.

butSave_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the save button.

This asks the view model to save the pattern.

Method Details

BindConditionalTypePattern() protected method

Binds the ConditionalTypePattern being edited to the UI.
protected BindConditionalTypePattern ( Nexus.Client.ModManagement.Scripting.XmlScript.ConditionalOptionTypeResolver.ConditionalTypePattern p_ctpPattern ) : void
p_ctpPattern Nexus.Client.ModManagement.Scripting.XmlScript.ConditionalOptionTypeResolver.ConditionalTypePattern The being edited.
return void

ConditionalTypePatternEditor() public method

The default constructor.
public ConditionalTypePatternEditor ( ) : System
return System

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