public void RunAction(IUserAction action) { UndoQueue.Add(action); action.Apply(); if (RedoQueue.Count != 0) { RedoQueue.Clear(); } }