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

            objfrmPatientRegister.Show();
            Visible = false;
        }
예제 #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();
        }
예제 #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);
     }
 }