Example #1
0
        private void btnQueryBuilder_Click(object sender, EventArgs e)
        {
            FormQueryBuilder dlg = new FormQueryBuilder(_tc);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                txtFilter.Text = dlg.whereClause;
            }
        }
Example #2
0
        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;
            }
        }
Example #3
0
        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();
        }