public void AddUndoTask(UndoTask Task, bool FirstUndoStep) { if (FirstUndoStep) { ++CurrentUndoGroup; } Task.UndoGroup = CurrentUndoGroup; UndoTasks.Add(Task); RedoTasks.Clear(); MainForm.UpdateUndoSettings(); }
public void AddUndoTask(UndoTask Task) { AddUndoTask(Task, true); }
public void AddGroupedUndoTask(UndoTask Task) { AddUndoTask(Task, false); }