C# 클래스 NanoByte.Common.Undo.PropertyChangedCommand

An undo command that handles a changed property - usually used with a PropertyGrid.
상속: PreExecutedCommand
파일 보기 프로젝트 열기: nano-byte/common

공개 메소드들

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