Example #1
0
 public clsGxStyleGallery()
     : base()
 {
     m_pChildren      = new GxObjectArray();
     m_childrenLoaded = false;
     m_pGallery       = new ESRI.ArcGIS.Framework.StyleGallery();
 }
Example #2
0
 public OpenFolderDataHelper(IGxObjectArray igxObjectArray_1, string string_1, IGxCatalog igxCatalog_1,
                             IGxObject igxObject_1)
 {
     this.CreateHandle();
     base.CreateControl();
     this.igxObjectArray_0 = igxObjectArray_1;
     this.string_0         = string_1;
     this.igxCatalog_0     = igxCatalog_1;
     this.igxObject_0      = igxObject_1;
 }
Example #3
0
 public GxOgcDatabaseFolder()
 {
     m_children  = new GxObjectArrayClass();
     m_bitmapLrg = new Bitmap(GetType().Assembly.GetManifestResourceStream("Pulp.ArcGis.ZigGis.images.ogc_lrg.bmp"));
     m_bitmapLrg.MakeTransparent(m_bitmapLrg.GetPixel(1, 1));
     m_hBitmapLrg = m_bitmapLrg.GetHbitmap();
     m_bitmapSm   = new Bitmap(GetType().Assembly.GetManifestResourceStream("Pulp.ArcGis.ZigGis.images.ogc_sm.bmp"));
     m_bitmapSm.MakeTransparent(m_bitmapSm.GetPixel(1, 1));
     m_hBitmapSm = m_bitmapSm.GetHbitmap();
 }
 public GxPostGisDatabase()
 {
     m_bitmapLrg = new Bitmap(GetType().Assembly.GetManifestResourceStream("Pulp.ArcGis.ZigGis.images.ziggis_big.bmp"));
     m_bitmapLrg.MakeTransparent(m_bitmapLrg.GetPixel(1, 1));
     m_hBitmapLrg = m_bitmapLrg.GetHbitmap();
     m_bitmapSm = new Bitmap(GetType().Assembly.GetManifestResourceStream("Pulp.ArcGis.ZigGis.images.ziggis_small.bmp"));
     m_bitmapSm.MakeTransparent(m_bitmapSm.GetPixel(1, 1));
     m_hBitmapSm = m_bitmapSm.GetHbitmap();
     m_children = new GxObjectArrayClass();
 }
Example #5
0
        public override void OnClick()
        {
            CmdCopyItem.m_GxObjectContainer = new GxObjectArray();
            IEnumGxObject selectedObjects = ((IGxSelection)_context.GxSelection).SelectedObjects;

            selectedObjects.Reset();
            for (IGxObject gxObject = selectedObjects.Next(); gxObject != null; gxObject = selectedObjects.Next())
            {
                CmdCopyItem.m_GxObjectContainer.Insert(-1, gxObject);
            }
        }
 public GxPostGisDatabase(string zigFilePath)
 {
     m_bitmapLrg = new Bitmap(GetType().Assembly.GetManifestResourceStream("Pulp.ArcGis.ZigGis.images.ziggis_big.bmp"));
     m_bitmapLrg.MakeTransparent(m_bitmapLrg.GetPixel(1, 1));
     m_hBitmapLrg = m_bitmapLrg.GetHbitmap();
     m_bitmapSm   = new Bitmap(GetType().Assembly.GetManifestResourceStream("Pulp.ArcGis.ZigGis.images.ziggis_small.bmp"));
     m_bitmapSm.MakeTransparent(m_bitmapSm.GetPixel(1, 1));
     m_hBitmapSm = m_bitmapSm.GetHbitmap();
     m_children  = new GxObjectArrayClass();
     this.setZigFile(zigFilePath);
     this.Refresh();
 }
Example #7
0
        /// <summary>
        /// Runs a raster file dialog box with the specified owner.
        /// </summary>
        /// <returns></returns>
        public DialogResult ShowDialog()
        {
            fileName  = "";
            fileNames = null;

            switch (this.type)
            {
            case FileDialogType.Open:
                IEnumGxObject enumGxObject = new GxObjectArrayClass();
                if (dialog.DoModalOpen(0, out enumGxObject))
                {
                    IGxObjectArray gxObjectArray = (IGxObjectArray)enumGxObject;
                    fileName  = gxObjectArray.Item(0).FullName;
                    fileNames = new string[gxObjectArray.Count];
                    for (int i = 0; i < gxObjectArray.Count; i++)
                    {
                        fileNames[i] = gxObjectArray.Item(i).FullName;
                    }

                    return(DialogResult.OK);
                }
                break;

            case FileDialogType.Save:
                if (dialog.DoModalSave(0))
                {
                    fileName = dialog.Name;
                    string extension = GetExtension(dialog.ObjectFilter.Name);
                    if ((Path.GetExtension(fileName) != "") &&
                        (Path.GetExtension(fileName).ToLower() == extension.Substring(1)))
                    {
                        fileName = Path.GetFileNameWithoutExtension(fileName);
                    }

                    fileName = dialog.FinalLocation.FullName + "\\" + fileName + extension;
                    return(DialogResult.OK);
                }
                break;
            }

            return(DialogResult.Cancel);
        }
Example #8
0
 public void SearchChildren(string string_1, IGxObjectArray igxObjectArray_1)
 {
 }
Example #9
0
 public clsGxStyleGalleryClass()
     : base()
 {
     m_pChildren      = new GxObjectArray();
     m_childrenLoaded = false;
 }
Example #10
0
 private static void old_acctor_mc()
 {
     CmdCopyItem.m_GxObjectContainer = null;
 }
 public clsGxStyleGallery()
     : base()
 {
     m_pChildren = new GxObjectArray();
     m_childrenLoaded = false;
     m_pGallery = new ESRI.ArcGIS.Framework.StyleGallery();
 }
 public clsGxStyleGalleryClass()
     : base()
 {
     m_pChildren = new GxObjectArray();
     m_childrenLoaded = false;
 }