/// <summary> /// 快查按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button2_Click(object sender, EventArgs e) { FrmQueryQuakeCmd frmQueryCmd = new FrmQueryQuakeCmd(this.User, QueryCmdAction.Use); frmQueryCmd.Owner = this; var dialogResult = frmQueryCmd.ShowDialog(); if (dialogResult == DialogResult.OK) { RefreshDataGridView(MySqlHelper.ExecuteDataset(DaoObject.ConnectionString, frmQueryCmd.Command).Tables[0]); } }
/// <summary> /// 保存查询条件 按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button4_Click(object sender, EventArgs e) { if (this.SqlBuilder.ToString().Equals("")) { MessageBox.Show("请先进行查询再保存查询条件"); return; } FrmQueryQuakeCmd frmQueryCmd = new FrmQueryQuakeCmd(this.User, QueryCmdAction.Save); frmQueryCmd.Owner = this; frmQueryCmd.ShowDialog(); }