private void cmdTableOpen(string arg) { Table tbl = findSelectedTable(); if (tbl == null) return; FilterExpression fExp = new FilterExpression(); if (arg == "WithFilter") { FilterExpressionDialog fed = new FilterExpressionDialog(tbl); if (fed.ShowDialog() == DialogResult.OK) fExp = fed.FilterExpression; else return; } if (CurrSQLEditor != null) { CurrSQLEditor.ShowTableData(tbl, fExp); } else { findOrCreateNewSQLEditor(); CurrSQLEditor.ShowTableData(tbl, fExp); } }
void btnFilter_Click(object sender, EventArgs e) { FilterExpressionDialog fed = new FilterExpressionDialog(ShowTable); fed.FilterExpression = fExp; if (fed.ShowDialog() == DialogResult.OK) { fExp = fed.FilterExpression; txtPageNo.Text = "1"; bindTableData(); } }