/// <summary> /// Send notification of object creation /// </summary> /// <param name="context"></param> /// <param name="obj"></param> private void SendOnAddNotification(ITypeDescriptorContext context, object obj) { DataListAttribute attribute = base.ListAttribute as DataListAttribute; if ((obj != null) && (attribute != null) && (attribute.EventHandler != null)) { ObjectCreatedEventArgs arg = new ObjectCreatedEventArgs(obj); Reflect.CallMethod(context.Instance, attribute.EventHandler, this, arg); } }