コード例 #1
0
ファイル: UndoRedoController.cs プロジェクト: phanson/Medius
        public void Do(IReversibleAction action)
        {
            action.Do();
            done.Push(action);
            undone.Clear();

            OnActionPerformed(action);
        }
コード例 #2
0
ファイル: UndoRedoController.cs プロジェクト: phanson/Medius
 private void OnActionReverted(IReversibleAction action)
 {
     if (ActionReverted != null)
         ActionReverted(action, new EventArgs());
 }