public void PushUndoBlock(UndoAction Action, string text, int x, int y) { var undo = new UndoBlock { Action = Action, Text = text }; undo.Position.Y = y; undo.Position.X = x; //AddToUndoList(undo); if (captureMode) { captureBlock.Add(undo); } else { AddToUndoList(undo); } }