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); }
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); }
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); }
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); } } }
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); } }
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); } }
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); }
public bool ShowWith(IDataset dataset, gView.Framework.Data.ILayer layer) { return(layer is IFeatureLayer && layer.Class is IFeatureClass); }
void _doc_LayerAdded(gView.Framework.Carto.IMap sender, gView.Framework.Data.ILayer layer) { FillCombo(); }
public bool ShowWith(gView.Framework.Data.IDataset dataset, gView.Framework.Data.ILayer layer) { return(layer is IFeatureLayer && dataset != null && dataset.Database is IEditableDatabase); }