Beispiel #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            addPatientDatasForm paf = new addPatientDatasForm();

            paf.lblPatientNo.Text = "0";
            paf.ShowDialog();
        }
Beispiel #2
0
        private void DGVpatient_DoubleClick(object sender, EventArgs e)
        {
            string patientNoStr     = DGVpatient.SelectedRows[0].Cells["PatientNo"].Value.ToString();//MessageBox.Show(drugNoStr);
            addPatientDatasForm add = new addPatientDatasForm();

            add.lblPatientNo.Text = patientNoStr; //drugNoStr > 0 :  update
            add.ShowDialog();
        }