public AttachObjectListEventInfo(AttachObjectListEventType eventType, AttachObjectList sender, AttachObject obj = null, int oldIndexInCategory = -1) { this.eventType = eventType; this.sender = sender; this.obj = obj; this.oldIndexInCategory = oldIndexInCategory; }
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); }