private void Perform(ObjOperation operation) { if (operation == ObjOperation.Add) { PerformAdd(); } else if (operation == ObjOperation.Remove) { PerformRemove(); } }
private AddOrRemoveObject(EditroidUndoRedoQueue q, Screen screen, ObjOperation operation, ObjectInstance data) : base(q, screen) { this.operation = operation; this.obj = data; }