Example #1
0
        public Panel PropertyPage(gView.Framework.Data.IDataset dataset, gView.Framework.Data.ILayer layer)
        {
            if (!ShowWith(dataset, layer))
            {
                return(null);
            }

            _fLayer = (IFeatureLayer)layer;
            foreach (IField field in _fLayer.Fields.ToEnumerable())
            {
                if (field.type == FieldType.Shape ||
                    field.type == FieldType.ID ||
                    field.type == FieldType.binary)
                {
                    continue;
                }

                dgFields.Rows.Add(
                    new object[] {
                    field.IsEditable,
                    field.name,
                    field.aliasname,
                    field.IsRequired,
                    field.DefautValue,
                    (field.Domain == null) ? "none" : field.Domain.Name
                });
            }

            return(panelPage);
        }
Example #2
0
 public bool ShowWith(IDataset dataset, gView.Framework.Data.ILayer layer)
 {
     if (layer is IWebServiceLayer &&
         ((IWebServiceLayer)layer).Class is WMSClass &&
         ((IWebServiceLayer)layer).Class.Dataset is WMSDataset)
     {
         return(true);
     }
     return(false);
 }
Example #3
0
        public bool ShowWith(gView.Framework.Data.IDataset dataset, gView.Framework.Data.ILayer layer)
        {
            if (layer != null &&
                layer.Class is IGridClass &&
                ((IGridClass)layer.Class).ImplementsRenderMethods != GridRenderMethode.None)
            {
                return(true);
            }

            return(false);
        }
Example #4
0
 void mapDocument_LayerAdded(IMap sender, gView.Framework.Data.ILayer layer)
 {
     // private TOC verständigen
     foreach (DataView dv in _dataViews)
     {
         if (dv.TOC is TOC && dv.Map == sender)
         {
             ((TOC)dv.TOC).AddLayer(layer, null);
         }
     }
 }
Example #5
0
        public Panel PropertyPage(gView.Framework.Data.IDataset dataset, gView.Framework.Data.ILayer layer)
        {
            if (layer == null)
            {
                return(null);
            }
            _class = layer.Class as IGridClass;

            panel1.Dock = DockStyle.Fill;
            MakeGUI();
            return(panel1);
        }
 public Panel PropertyPage(IDataset dataset, gView.Framework.Data.ILayer layer)
 {
     if (ShowWith(dataset, layer))
     {
         _properties = ((ArcIMSDataset)layer.Class.Dataset).Properties;
         BuildTree();
         return(panel1);
     }
     else
     {
         return(null);
     }
 }
Example #7
0
        public Panel PropertyPage(IDataset dataset, gView.Framework.Data.ILayer layer)
        {
            if (ShowWith(dataset, layer))
            {
                _class      = (WMSClass)layer.Class;
                panel1.Dock = DockStyle.Fill;

                BuildGUI();
                return(panel1);
            }
            else
            {
                return(null);
            }
        }
Example #8
0
        public Panel PropertyPage(IDataset dataset, gView.Framework.Data.ILayer layer)
        {
            _layer = layer as IFeatureLayer;

            if (_layer != null && _layer.FilterQuery != null)
            {
                if (!String.IsNullOrEmpty(_layer.FilterQuery.JsonWhereClause))
                {
                    txtExpression.Text = _layer.FilterQuery.JsonWhereClause;
                }
                else
                {
                    txtExpression.Text = _layer.FilterQuery.WhereClause;
                }
            }
            return(panelPage);
        }
Example #9
0
 public bool ShowWith(IDataset dataset, gView.Framework.Data.ILayer layer)
 {
     return(layer is IFeatureLayer &&
            layer.Class is IFeatureClass);
 }
Example #10
0
 void _doc_LayerAdded(gView.Framework.Carto.IMap sender, gView.Framework.Data.ILayer layer)
 {
     FillCombo();
 }
Example #11
0
 public bool ShowWith(gView.Framework.Data.IDataset dataset, gView.Framework.Data.ILayer layer)
 {
     return(layer is IFeatureLayer && dataset != null && dataset.Database is IEditableDatabase);
 }