C# Class Nexus.Client.ModAuthoring.UI.Controls.ModInfoEditor

A view that allows editing of an IModInfo.
Inheritance: System.Windows.Forms.UserControl
Exibir arquivo Open project: NexusMods/NexusModManager-4.5

Private Properties

Property Type Description
Control_KeyDown void
Control_Validated void
DoDispose void
InitializeComponent void
LockValue_CheckedChanged void
ModInfo_ErrorChanged void
ModTaggerForm_FormClosing void
ViewModel_PropertyChanged void
butClearScreenshot_Click void
butSetScreenshot_Click void
tbxDescription_KeyPress void

Public Methods

Method Description
ModInfoEditor ( ) : System

The default constructor.

Protected Methods

Method Description
BindModInfo ( ModInfoVM p_vmlModInfo ) : void

Binds the IModInfo's view model to the control.

Dispose ( bool disposing ) : void

Clean up any resources being used.

OnLoad ( EventArgs e ) : void

Raises the UserControl.Load event of the control.

This loads any saved control metrics.

Private Methods

Method Description
Control_KeyDown ( object sender, KeyEventArgs e ) : void

Handles the Control.KeyDown event of the editing controls.

This resets the value of the control to the original bound value.

Control_Validated ( object sender, EventArgs e ) : void

Handles the Control.Validating event of the editing controls.

This saves the changed values, if they are valid.

DoDispose ( ) : void

Allows extension of the dispose method.

InitializeComponent ( ) : void

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

LockValue_CheckedChanged ( object sender, EventArgs e ) : void

Handles the CheckBox.CheckedChanged event of the lock buttons.

ModInfo_ErrorChanged ( object sender, ErrorEventArguments e ) : void

Handles the ErrorContainer.ErrorChanged event of the view model of the IModInfo being edited.

This displays any validation errors.

ModTaggerForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Handles the Form.Closing event of the parent form.

This save the control's metrics.

ViewModel_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the view model.

butClearScreenshot_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the clear screenshot button.

Removes the screenshot from the mod.

butSetScreenshot_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the set screenshot button.

Sets the screenshot for the mod.

tbxDescription_KeyPress ( object sender, KeyPressEventArgs e ) : void

Handles the Control.KeyPress event of the description textbox.

This selects all text when Ctrl-A is pressed.

Method Details

BindModInfo() protected method

Binds the IModInfo's view model to the control.
protected BindModInfo ( ModInfoVM p_vmlModInfo ) : void
p_vmlModInfo ModInfoVM The view model to bind to the control.
return void

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

ModInfoEditor() public method

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

OnLoad() protected method

Raises the UserControl.Load event of the control.
This loads any saved control metrics.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs An describing the event arguments.
return void