/// <summary> /// Enums the undoable actions. /// </summary> /// <returns></returns> public IEnumerable <IAction> EnumUndoableActions() { SimpleHistoryNode Current = Head; while (Current != null && Current != CurrentState && Current.NextAction != null) { yield return(Current.NextAction); Current = Current.NextNode; } }
/// <summary> /// Inits this instance. /// </summary> private void Init() { CurrentState = new SimpleHistoryNode(); Head = CurrentState; }
/// <summary> /// Inits this instance. /// </summary> private void Init() { CurrentState = new SimpleHistoryNode(); Head = CurrentState; }