C# Класс NanoByte.Common.Undo.PropertyChangedCommand

An undo command that handles a changed property - usually used with a PropertyGrid.
Наследование: PreExecutedCommand
Показать файл Открыть проект

Открытые методы

Метод Описание
PropertyChangedCommand ( object target, PropertyDescriptor property, object oldValue, object newValue ) : System.ComponentModel

Initializes the command after the property was first changed.

Защищенные методы

Метод Описание
OnRedo ( ) : void

Set the changed property value again.

OnUndo ( ) : void

Restore the original property value.

Приватные методы

Метод Описание
PropertyChangedCommand ( object target, System.Windows.Forms.PropertyValueChangedEventArgs e ) : System.ComponentModel

Описание методов

OnRedo() защищенный Метод

Set the changed property value again.
protected OnRedo ( ) : void
Результат void

OnUndo() защищенный Метод

Restore the original property value.
protected OnUndo ( ) : void
Результат void

PropertyChangedCommand() публичный Метод

Initializes the command after the property was first changed.
public PropertyChangedCommand ( object target, PropertyDescriptor property, object oldValue, object newValue ) : System.ComponentModel
target object The object the property belongs to.
property System.ComponentModel.PropertyDescriptor The property that was changed.
oldValue object The property's old value.
newValue object The property's current value.
Результат System.ComponentModel