private void btnQueryBuilder_Click(object sender, EventArgs e) { FormQueryBuilder dlg = new FormQueryBuilder(_tc); if (dlg.ShowDialog() == DialogResult.OK) { txtFilter.Text = dlg.whereClause; } }
private void btnQueryBuilder_Click(object sender, EventArgs e) { if (_rule == null || _layer == null) { return; } FormQueryBuilder dlg = new FormQueryBuilder(_layer); if (dlg.ShowDialog() == DialogResult.OK) { txtQuery.Text = dlg.whereClause; } }
public void newCustomReport() { int selectTab = 0; if (window.tabControlControls.SelectedIndex == 0) { selectTab = 0; } if (window.tabControlControls.SelectedIndex == 1) { selectTab = 1; } if (window.tabControlControls.SelectedIndex == 2) { selectTab = 3; } FormQueryBuilder tableFilters = new FormQueryBuilder(Project, selectTab, moduleRoads); if (tableFilters.ShowDialog() == DialogResult.OK) { if (tableFilters.tabControlCustom.SelectedTab.Text == "Road") { customRoadReport(tableFilters); } if (tableFilters.tabControlCustom.SelectedTab.Text == "Sign") { customSignReport(tableFilters); } if (tableFilters.tabControlCustom.SelectedTab.Text == "Support") { customSupportReport(tableFilters); } if (tableFilters.tabControlCustom.SelectedTab.Text == "Other") { customOtherReport(tableFilters); } } tableFilters.Close(); }