void ObjectInquiry_DeleteObjectCompleted(object sender, ObjectConfigArgs e) { DomainObjectInquiry inquiry = sender as DomainObjectInquiry; TreeListNode objectRootNode = GetRootObjectsNode(inquiry); TreeListNode objectConfigNode = GetNodeByValue(objectRootNode, e.AObject); if (objectConfigNode == null) return; objectRootNode.Nodes.Remove(objectConfigNode); }
void ObjectInquiry_CreateObjectCompleted(object sender, ObjectConfigArgs e) { DomainObjectInquiry inquiry = sender as DomainObjectInquiry; TreeListNode objectRootNode = GetRootObjectsNode(inquiry); AppendObjectConfigNode(objectRootNode, GetInquiry(objectRootNode), e.AObject); }