public void Redo() { if (HistoryRedo.Count > 0) { ArchitectCommand command = HistoryRedo.Pop(); command.Do(); History.Push(command); } }
public void Undo() { if (History.Count > 0) { ArchitectCommand bc = History.Pop(); bc.Undo(); HistoryRedo.Push(bc); } }