private void BtnEdit_Click(object sender, EventArgs e) { if (this.currentReader == null) { return; } FrmEidtReader frmEdit = new FrmEidtReader(this.currentReader); DialogResult result = frmEdit.ShowDialog(); if (result == DialogResult.OK) { BtnQuery_Click(null, null);//TODO 优化用户体验,如用户查询到信息后,修改了文本框内容后没有点击查询,直接点击修改,修改后会查询不到修改的内容,或者查询到另一个读者信息 } }
/// <summary> /// 修改信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnEdit_Click(object sender, EventArgs e) { FrmEidtReader frmEdit = new FrmEidtReader(this.objCurrentReader); frmEdit.Show(); }