private static Hashtable GetExtenders(ObjectExtenders extensionMgr, string catID, object extendee, Hashtable ht) { if (extensionMgr == null) { return(null); } if (ht == null) { ht = new Hashtable(); } object pDisp = extendee; // generate the extender name list. string[] extenderNames = GetExtenderNames(extensionMgr, catID, pDisp); for (int i = 0; i < extenderNames.Length; i++) { try { object pDispExtender = extensionMgr.GetExtender(catID, extenderNames[i], pDisp); if (pDispExtender != null) { // we've got one, so add it to our list ht.Add(extenderNames[i], pDispExtender); } } catch { } } return(ht); }
private static Hashtable GetExtenders(ObjectExtenders extensionMgr, string catID, object extendee, Hashtable ht) { if (extensionMgr == null) { return null; } if (ht == null) { ht = new Hashtable(); } object pDisp = extendee; // generate the extender name list. string[] extenderNames = GetExtenderNames(extensionMgr, catID, pDisp); for (int i = 0; i < extenderNames.Length; i++) { try { object pDispExtender = extensionMgr.GetExtender(catID, extenderNames[i], pDisp); if (pDispExtender != null) { // we've got one, so add it to our list ht.Add(extenderNames[i], pDispExtender); } } catch { } } return ht; }
public object get_Extender(string extenderName) { ObjectExtenders extenderService = (ObjectExtenders)ProjectMgr.GetService(typeof(ObjectExtenders)); return(extenderService.GetExtender(ExtenderCATID, extenderName, this)); }