Example #1
0
        private void ultraButtonNewPatient_Click(object sender, EventArgs e)
        {
            frmPatientRgister objfrmPatientRegister = new frmPatientRgister();

            objfrmPatientRegister.Show();
            Visible = false;
        }
Example #2
0
        private void ultraButtonEditPatient_Click(object sender, EventArgs e)
        {
            frmPatientRgister objfrmPatientRgister = new frmPatientRgister();

            objfrmPatientRgister.id          = id.ToString();
            objfrmPatientRgister.strFormMode = "Edit";
            objfrmPatientRgister.ultraButtonRegister.Text = "Update";
            objfrmPatientRgister.ShowDialog();
        }
Example #3
0
 private void ultraButtonEdit_Click(object sender, EventArgs e)
 {
     try
     {
         objfrmPatientRgister             = new frmPatientRgister();
         objfrmPatientRgister.id          = id.ToString();
         objfrmPatientRgister.strFormMode = "Edit";
         objfrmPatientRgister.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }