C# Класс Illusion.SetPropertyAction

This is a concrete AbstractAction that can change any property on any object It can also undo what it did
Наследование: AbstractAction
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
SetPropertyAction ( object parentObject, string propertyName, object value ) : System.ComponentModel

Initializes a new instance of the SetPropertyAction class.

SetPropertyAction ( object parentObject, string propertyName, object value, object oldValue ) : System.ComponentModel
TryToMerge ( IAction followingAction ) : bool

Subsequent changes of the same property on the same object are consolidated into one action

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

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

Override execute core to provide your logic that actually performs the action

UnExecuteCore ( ) : void

Override this to provide the logic that undoes the action

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

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

Override execute core to provide your logic that actually performs the action
protected ExecuteCore ( ) : void
Результат void

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

Initializes a new instance of the SetPropertyAction class.
public SetPropertyAction ( object parentObject, string propertyName, object value ) : System.ComponentModel
parentObject object The parent object.
propertyName string Name of the property.
value object The value.
Результат System.ComponentModel

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

public SetPropertyAction ( object parentObject, string propertyName, object value, object oldValue ) : System.ComponentModel
parentObject object
propertyName string
value object
oldValue object
Результат System.ComponentModel

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

Subsequent changes of the same property on the same object are consolidated into one action
public TryToMerge ( IAction followingAction ) : bool
followingAction IAction Subsequent action that is being recorded
Результат bool

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

Override this to provide the logic that undoes the action
protected UnExecuteCore ( ) : void
Результат void