示例#1
0
        private void ultraButtonNew_Click(object sender, EventArgs e)
        {
            frmDoctorRegister objDoctorRegister = new frmDoctorRegister();

            objDoctorRegister.Show();
            Visible = false;
        }
示例#2
0
        private void ultraButtonEdit_Click(object sender, EventArgs e)
        {
            frmDoctorRegister objDoctorRegister = new frmDoctorRegister();

            objDoctorRegister.ID          = ID.ToString();
            objDoctorRegister.strFormMode = "Edit";
            objDoctorRegister.ShowDialog();
        }
示例#3
0
 private void ultraButtonEdit_Click(object sender, EventArgs e)
 {
     try
     {
         objDoctorRegister             = new frmDoctorRegister();
         objDoctorRegister.ID          = id.ToString();
         objDoctorRegister.strFormMode = "Edit";
         objDoctorRegister.ShowDialog();
     }catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }