public void Redo()
        {
            UndoRedoBatch action = RedoList[RedoList.Count - 1];

            action.UndoRedo();
            action.SwitchActions();
            RedoList.RemoveAt(RedoList.Count - 1);
            UndoList.Add(action);
        }
        public void AddUndoBatch(List <UndoRedoAction> actions)
        {
            UndoRedoBatch batch = new UndoRedoBatch()
            {
                Actions = actions
            };

            UndoList.Add(batch);
            RedoList.Clear();
        }