C# Класс Nexus.Client.ModAuthoring.UI.Controls.ModInfoEditor

A view that allows editing of an IModInfo.
Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект

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