private void LoadDataToGridView(MapObjects2.MapLayer layer) { Utilities.LayerProperty oLayerProperty = new MapConfigure.Utilities.LayerProperty(); try { this.lblLayerDescription.Text = string.Format("ͼ²ãÃû³Æ £º {0}", layer.Name); System.Data.DataTable dtlayerAttributes = oLayerProperty.GetAttributesByLayer(layer); this.dgvViewAttributes.DataSource = dtlayerAttributes; } finally { oLayerProperty = null; } }
private void LoadDataToGridView(MapObjects2.MapLayer layer) { Utilities.LayerProperty oLayerProperty = new MapConfigure.Utilities.LayerProperty(); try { this.lblLayerDescription.Text = string.Format("ͼ������ �� {0}", layer.Name); System.Data.DataTable dtlayerAttributes = oLayerProperty.GetAttributesByLayer(layer); this.dgvViewAttributes.DataSource = dtlayerAttributes; } finally { oLayerProperty = null; } }