C# 클래스 Nexus.Client.ModAuthoring.UI.Controls.ModInfoEditor

A view that allows editing of an IModInfo.
상속: System.Windows.Forms.UserControl
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
ModInfoEditor ( ) : System

The default constructor.

보호된 메소드들

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

비공개 메소드들

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

메소드 상세

BindModInfo() 보호된 메소드

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

Dispose() 보호된 메소드

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

ModInfoEditor() 공개 메소드

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

OnLoad() 보호된 메소드

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