public bool CanDisplayObject(ESRI.ArcGIS.Catalog.IGxObject obj) { //Check objects can be displayed try { //Check objects can be displayed if (m_pBasicFilter.CanDisplayObject(obj)) { return(true); } else if (obj is IGxFile) { string sExt = null; sExt = GetExtension(obj.Name); if (sExt.ToLower() == ".py") { return(true); } } } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.ToString()); } return(false); }
public bool CanChooseObject(ESRI.ArcGIS.Catalog.IGxObject obj, ref ESRI.ArcGIS.Catalog.esriDoubleClickResult result) { //Set whether the selected object can be chosen bool bCanChoose = false; bCanChoose = false; if (obj is IGxFile) { string sExt = null; sExt = GetExtension(obj.Name); if (sExt.ToLower() == ".py") { bCanChoose = true; } } return(bCanChoose); }
public bool Applies(ESRI.ArcGIS.Catalog.IGxObject Selection) { //This view applies if the current Gx selection supports IGxDataset. return((Selection != null) & (Selection is IGxDataset)); }
public void Attach(ESRI.ArcGIS.Catalog.IGxObject Parent, ESRI.ArcGIS.Catalog.IGxCatalog pCatalog) { m_pParent = (CustomRootObject_CS.clsGxStyleGallery)Parent; m_pCatalog = pCatalog; }
public void DeleteChild(ESRI.ArcGIS.Catalog.IGxObject child) { }
public ESRI.ArcGIS.Catalog.IGxObject AddChild(ESRI.ArcGIS.Catalog.IGxObject child) { return(null); }
public bool Applies(ESRI.ArcGIS.Catalog.IGxObject Selection) { return(Selection is clsGxStyleGalleryItem); }
public void Attach(ESRI.ArcGIS.Catalog.IGxObject Parent, ESRI.ArcGIS.Catalog.IGxCatalog pCatalog) { m_pParent = (clsGxStyleGalleryClass)Parent; m_pCatalog = pCatalog; }
public bool Applies(ESRI.ArcGIS.Catalog.IGxObject Selection) { //Set applies return((Selection != null) & (Selection is IGxTextFile)); }
public void DeleteChild(ESRI.ArcGIS.Catalog.IGxObject child) { // TODO: Add clsGxStyleGallery.DeleteChild implementation }
public void Attach(ESRI.ArcGIS.Catalog.IGxObject Parent, ESRI.ArcGIS.Catalog.IGxCatalog pCatalog) { m_pParent = Parent; m_pCatalog = pCatalog; }
public bool CanSaveObject(ESRI.ArcGIS.Catalog.IGxObject Location, string newObjectName, ref bool objectAlreadyExists) { return(false); }