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

An undo command that does something different on the first call to Execute than on subsequent redo calls.
Наследование: IUndoCommand
Показать файл Открыть проект

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

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

Performs the desired action.

Undo ( ) : void

Undoes the changes made by Execute.

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

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

Template method to perform the desired action the first time.

OnRedo ( ) : void

Template method to perform the desired action again.

OnUndo ( ) : void

Template method to undo the changes made by OnFirstExecute or OnRedo.

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

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

Performs the desired action.
public Execute ( ) : void
Результат void

OnFirstExecute() защищенный абстрактный Метод

Template method to perform the desired action the first time.
protected abstract OnFirstExecute ( ) : void
Результат void

OnRedo() защищенный абстрактный Метод

Template method to perform the desired action again.
protected abstract OnRedo ( ) : void
Результат void

OnUndo() защищенный абстрактный Метод

Template method to undo the changes made by OnFirstExecute or OnRedo.
protected abstract OnUndo ( ) : void
Результат void

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

Undoes the changes made by Execute.
public Undo ( ) : void
Результат void