//when clicking "OK" private void btnOK_Click(object sender, EventArgs e) { queryResult = null; SpatiaLiteHelper slh = new SpatiaLiteHelper(); queryResult = slh.ReadFeatureSet(connString, txtQuery.Text); dgQueryResult.DataSource = queryResult.DataTable; //SpatiaLiteHelper slh = new SpatiaLiteHelper(); //foreach (DataGridViewRow r in dgGeometryColumns.Rows) //{ // if (r.Selected) // { // GeometryColumnInfo item = r.DataBoundItem as GeometryColumnInfo; // if (item != null) // { // IFeatureSet fs = slh.ReadFeatureSet(connString, item); // IMapFeatureLayer lay = mainMap.Layers.Add(fs); // //lay.EditMode = false; // } // } //} }
// when clicking "OK" private void BtnOkClick(object sender, EventArgs e) { _queryResult = null; _queryResult = _slh.ReadFeatureSet(txtQuery.Text); dgQueryResult.DataSource = _queryResult.DataTable; }
//when clicking "OK" private void btnOK_Click(object sender, EventArgs e) { queryResult = null; SpatiaLiteHelper slh = new SpatiaLiteHelper(); queryResult = slh.ReadFeatureSet(connString, txtQuery.Text); dgQueryResult.DataSource = queryResult.DataTable; //SpatiaLiteHelper slh = new SpatiaLiteHelper(); //foreach (DataGridViewRow r in dgGeometryColumns.Rows) //{ // if (r.Selected) // { // GeometryColumnInfo item = r.DataBoundItem as GeometryColumnInfo; // if (item != null) // { // IFeatureSet fs = slh.ReadFeatureSet(connString, item); // IMapFeatureLayer lay = mainMap.Layers.Add(fs); // //lay.EditMode = false; // } // } //} }
// when clicking "OK" private void BtnOkClick(object sender, EventArgs e) { _queryResult = null; SpatiaLiteHelper slh = new SpatiaLiteHelper(); _queryResult = slh.ReadFeatureSet(_connString, txtQuery.Text); dgQueryResult.DataSource = _queryResult.DataTable; }
// when clicking "OK" private void BtnOkClick(object sender, EventArgs e) { foreach (DataGridViewRow r in dgGeometryColumns.SelectedRows) { if (r.DataBoundItem is GeometryColumnInfo item) { IFeatureSet fs = _slh.ReadFeatureSet(item); _mainMap.Layers.Add(fs); } } Close(); }
// when clicking "OK" private void BtnOkClick(object sender, EventArgs e) { SpatiaLiteHelper slh = new SpatiaLiteHelper(); foreach (DataGridViewRow r in dgGeometryColumns.Rows) { if (r.Selected) { GeometryColumnInfo item = r.DataBoundItem as GeometryColumnInfo; if (item != null) { IFeatureSet fs = slh.ReadFeatureSet(_connString, item); _mainMap.Layers.Add(fs); } } } }
//when clicking "OK" private void btnOK_Click(object sender, EventArgs e) { SpatiaLiteHelper slh = new SpatiaLiteHelper(); foreach (DataGridViewRow r in dgGeometryColumns.Rows) { if (r.Selected) { GeometryColumnInfo item = r.DataBoundItem as GeometryColumnInfo; if (item != null) { IFeatureSet fs = slh.ReadFeatureSet(connString, item); IMapFeatureLayer lay = mainMap.Layers.Add(fs); //lay.EditMode = false; } } } }