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

The view for editing an ICondition.
Inheritance: NodeEditor
Exibir arquivo Open project: NexusMods/NexusModManager-4.5

Private Properties

Property Type Description
ConditionalTypePatternValidated void
InitializeComponent void
cpePatternEditor_Validated void

Public Methods

Method Description
ConditionEditor ( ) : System

The default constructor.

ConditionEditor ( ConditionEditorVM p_vmlViewModel ) : System

A simple constructor the initializes the object with the given dependencies.

GetViewModel ( ) : IViewModel

Gets the view model of the editor.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

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

Hanldes the ConditionEditorVM.ConditionValidated 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.

cpePatternEditor_Validated ( object sender, EventArgs e ) : void

Hanldes the Control.Validated event of the CPL editor.

This saves the edited CPL.

Method Details

ConditionEditor() public method

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

ConditionEditor() public method

A simple constructor the initializes the object with the given dependencies.
public ConditionEditor ( ConditionEditorVM p_vmlViewModel ) : System
p_vmlViewModel ConditionEditorVM The view model that provides the data and operations for this view.
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

GetViewModel() public method

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