Example #1
0
 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);
 }
Example #2
0
        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));
 }
Example #4
0
 public void Attach(ESRI.ArcGIS.Catalog.IGxObject Parent, ESRI.ArcGIS.Catalog.IGxCatalog pCatalog)
 {
     m_pParent  = (CustomRootObject_CS.clsGxStyleGallery)Parent;
     m_pCatalog = pCatalog;
 }
Example #5
0
 public void DeleteChild(ESRI.ArcGIS.Catalog.IGxObject child)
 {
 }
Example #6
0
 public ESRI.ArcGIS.Catalog.IGxObject AddChild(ESRI.ArcGIS.Catalog.IGxObject child)
 {
     return(null);
 }
Example #7
0
 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));
 }
Example #10
0
 public void DeleteChild(ESRI.ArcGIS.Catalog.IGxObject child)
 {
     // TODO: Add clsGxStyleGallery.DeleteChild implementation
 }
Example #11
0
 public void Attach(ESRI.ArcGIS.Catalog.IGxObject Parent, ESRI.ArcGIS.Catalog.IGxCatalog pCatalog)
 {
     m_pParent  = Parent;
     m_pCatalog = pCatalog;
 }
Example #12
0
 public bool CanSaveObject(ESRI.ArcGIS.Catalog.IGxObject Location, string newObjectName, ref bool objectAlreadyExists)
 {
     return(false);
 }