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