示例#1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            addPersonalDatasForm apdf = new addPersonalDatasForm();

            apdf.lblPersonalNo.Text = "0";
            apdf.lblOp.Text         = "New personal Information";
            apdf.btn_delete.Visible = false;
            apdf.ShowDialog();
        }
示例#2
0
        private void DGVpersonal_DoubleClick(object sender, EventArgs e)
        {
            string personalNoStr     = DGVpersonal.SelectedRows[0].Cells["PersonalNo"].Value.ToString();//MessageBox.Show(drugNoStr);
            addPersonalDatasForm add = new addPersonalDatasForm();

            add.lblPersonalNo.Text = personalNoStr; //drugNoStr > 0 :  update
            add.lblOp.Text         = "Update or Delete personal Information";
            add.btn_delete.Visible = true;
            add.ShowDialog();
        }