コード例 #1
0
        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;
            }
        }
コード例 #2
0
ファイル: 3DXTuiYao.cs プロジェクト: ewin66/wholePivas
        //刷新界面
        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;
            }
        }