public object ESRI_GetCurrentFeatureClass(ResultBuffer rb) { object result; try { MSCFeatureClass mSCFeatureClass = AfaDocData.ActiveDocData.GetActiveFeatureClassOrSubtype(); if (mSCFeatureClass.IsSubType) { mSCFeatureClass = mSCFeatureClass.ParentFC; } if (mSCFeatureClass.GetType() == typeof(MSCFeatureService)) { result = null; } else { result = mSCFeatureClass.Name; } } catch { result = null; } return(result); }
public object ESRI_GetCurrentSubtypeName(ResultBuffer rb) { object result; try { MSCFeatureClass activeFeatureClassOrSubtype = AfaDocData.ActiveDocData.GetActiveFeatureClassOrSubtype(); if (!activeFeatureClassOrSubtype.IsSubType) { result = null; } else if (activeFeatureClassOrSubtype.GetType() == typeof(MSCFeatureService)) { result = null; } else { result = activeFeatureClassOrSubtype.Name; } } catch { result = null; } return(result); }
public FCTag(MSCFeatureClass fc) { this.fcName = fc.Name; this.IsFeatureService = (fc.GetType() == typeof(MSCFeatureService)); if (fc.ParentFC == null) { this.fcName = fc.Name; } this.ParentTag = null; if (fc.IsSubType) { MSCFeatureClass arg_56_0 = fc.ParentFC; this.ParentTag = new FCTag(fc.ParentFC); } }