private void button2_Click(object sender, EventArgs e)//刷新界面 { int row = dgvPre.CurrentRow.Index; CheckCancelDrug crd = new CheckCancelDrug(); CheckCancelDrug.CancelDrug += new CheckCancelDrug.NewDelegate(update); if (crd.ShowDialog() == DialogResult.OK) { dgvPre.Rows[row].Selected = true; showlabel(dgvPre.CurrentRow.Cells["PreCode"].Value.ToString()); button2.Enabled = false; } }
//刷新界面 private void button2_Click(object sender, EventArgs e) { ((NurseWorkStation)(this.Parent.Parent)).SetTimeNO(); int row = dgvPre.CurrentRow.Index; CheckCancelDrug crd = new CheckCancelDrug(); CheckCancelDrug.CancelDrug += new CheckCancelDrug.NewDelegate(update); if (crd.ShowDialog() == DialogResult.OK) { dgvPre.ClearSelection(); dgvPre.Rows[row].Selected = true; showlabel(dgvPre.CurrentRow.Cells["PreCode"].Value.ToString()); button2.Enabled = false; } }