コード例 #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);
        }
コード例 #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);
 }
コード例 #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);
        }
コード例 #4
0
ファイル: MapApplication.cs プロジェクト: jugstalt/gview5
 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);
         }
     }
 }
コード例 #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);
        }
コード例 #6
0
 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);
     }
 }
コード例 #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);
            }
        }
コード例 #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);
        }
コード例 #9
0
 public bool ShowWith(IDataset dataset, gView.Framework.Data.ILayer layer)
 {
     return(layer is IFeatureLayer &&
            layer.Class is IFeatureClass);
 }
コード例 #10
0
ファイル: NetworkSelector.cs プロジェクト: jugstalt/gview5
 void _doc_LayerAdded(gView.Framework.Carto.IMap sender, gView.Framework.Data.ILayer layer)
 {
     FillCombo();
 }
コード例 #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);
 }