예제 #1
0
 public AttachObjectListEventInfo(AttachObjectListEventType eventType, AttachObjectList sender,
                                  AttachObject obj = null, int oldIndexInCategory = -1)
 {
     this.eventType          = eventType;
     this.sender             = sender;
     this.obj                = obj;
     this.oldIndexInCategory = oldIndexInCategory;
 }
예제 #2
0
        void SendEvent(AttachObjectListEventType eventType, AttachObject obj = null, int oldIndexInCategory = -1)
        {
            if (OnChanged == null)
            {
                return;
            }
            AttachObjectListEventInfo eventInfo = new AttachObjectListEventInfo(eventType, this, obj,
                                                                                oldIndexInCategory);

            OnChanged.Invoke(eventInfo);
        }