示例#1
0
        public object PropertyPage(object initObject)
        {
            if (initObject is IFeatureLayer)
            {
                IFeatureLayer layer = (IFeatureLayer)initObject;
                if (layer.FeatureClass == null)
                {
                    return(null);
                }

                if (_symbolTable.Count == 0)
                {
                    this[null] = RendererFunctions.CreateStandardSymbol(layer.LayerGeometryType /*layer.FeatureClass.GeometryType*/);
                }

                string   appPath    = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
                Assembly uiAssembly = Assembly.LoadFrom(appPath + @"\gView.Carto.Rendering.UI.dll");

                IPropertyPanel p = uiAssembly.CreateInstance("gView.Framework.Carto.Rendering.UI.PropertyPage_ValueMapRenderer") as IPropertyPanel;
                if (p != null)
                {
                    return(p.PropertyPanel(this, (IFeatureLayer)initObject));
                }
            }

            return(null);
        }
示例#2
0
        public object PropertyPage(object initObject)
        {
            if (initObject is IFeatureLayer)
            {
                if (((IFeatureLayer)initObject).FeatureClass == null)
                {
                    return(null);
                }

                if (_symbol == null)
                {
                    _symbol = RendererFunctions.CreateStandardSymbol(((IFeatureLayer)initObject).LayerGeometryType /*((IFeatureLayer)initObject).FeatureClass.GeometryType*/);
                }
                string   appPath    = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
                Assembly uiAssembly = Assembly.LoadFrom(appPath + @"/gView.Win.Carto.Rendering.UI.dll");

                IPropertyPanel p = uiAssembly.CreateInstance("gView.Framework.Carto.Rendering.UI.PropertyForm_SimpleRenderer") as IPropertyPanel;
                if (p != null)
                {
                    return(p.PropertyPanel(this, (IFeatureLayer)initObject));
                }
            }

            return(null);
        }
示例#3
0
        public object PropertyPage(object initObject)
        {
            string   appPath    = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
            Assembly uiAssembly = Assembly.LoadFrom(appPath + @"/gView.Win.Symbology.UI.dll");

            IPropertyPanel p = uiAssembly.CreateInstance("gView.Framework.Symbology.UI.PropertyForm_SimpleTextSymbol") as IPropertyPanel;

            if (p != null)
            {
                return(p.PropertyPanel(this));
            }

            return(null);
        }
示例#4
0
        public object PropertyPage(object initObject)
        {
            if (initObject is IFeatureLayer)
            {
                if (((IFeatureLayer)initObject).FeatureClass == null)
                {
                    return(null);
                }

                string   appPath    = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
                Assembly uiAssembly = Assembly.LoadFrom(appPath + @"/gView.Win.Carto.Rendering.UI.dll");

                IPropertyPanel p = uiAssembly.CreateInstance("gView.Framework.Carto.Rendering.UI.PropertyForm_DimensionRenderer") as IPropertyPanel;
                if (p != null)
                {
                    return(p.PropertyPanel(this, (IFeatureLayer)initObject));
                }
            }

            return(null);
        }
示例#5
0
        public object PropertyPage(object initObject)
        {
            if (!(initObject is IFeatureLayer))
            {
                return(null);
            }

            try
            {
                string   appPath    = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
                Assembly uiAssembly = Assembly.LoadFrom(appPath + @"\gView.Carto.Rendering.UI.dll");

                IPropertyPanel p = uiAssembly.CreateInstance("gView.Framework.Carto.Rendering.UI.PropertyForm_FeatureGroupRenderer") as IPropertyPanel;
                if (p != null)
                {
                    return(p.PropertyPanel(this, (IFeatureLayer)initObject));
                }
            }
            catch (Exception ex)
            {
            }
            return(null);
        }