コード例 #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);
 }
コード例 #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);
        }
コード例 #3
0
 public bool Applies(ESRI.ArcGIS.Catalog.IGxObject Selection)
 {
     //This view applies if the current Gx selection supports IGxDataset.
     return((Selection != null) & (Selection is IGxDataset));
 }
コード例 #4
0
 public void Attach(ESRI.ArcGIS.Catalog.IGxObject Parent, ESRI.ArcGIS.Catalog.IGxCatalog pCatalog)
 {
     m_pParent  = (CustomRootObject_CS.clsGxStyleGallery)Parent;
     m_pCatalog = pCatalog;
 }
コード例 #5
0
 public void DeleteChild(ESRI.ArcGIS.Catalog.IGxObject child)
 {
 }
コード例 #6
0
 public ESRI.ArcGIS.Catalog.IGxObject AddChild(ESRI.ArcGIS.Catalog.IGxObject child)
 {
     return(null);
 }
コード例 #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;
 }
コード例 #9
0
 public bool Applies(ESRI.ArcGIS.Catalog.IGxObject Selection)
 {
     //Set applies
     return((Selection != null) & (Selection is IGxTextFile));
 }
コード例 #10
0
 public void DeleteChild(ESRI.ArcGIS.Catalog.IGxObject child)
 {
     // TODO: Add clsGxStyleGallery.DeleteChild implementation
 }
コード例 #11
0
 public void Attach(ESRI.ArcGIS.Catalog.IGxObject Parent, ESRI.ArcGIS.Catalog.IGxCatalog pCatalog)
 {
     m_pParent  = Parent;
     m_pCatalog = pCatalog;
 }
コード例 #12
0
 public bool CanSaveObject(ESRI.ArcGIS.Catalog.IGxObject Location, string newObjectName, ref bool objectAlreadyExists)
 {
     return(false);
 }