private void ultraButtonNewPatient_Click(object sender, EventArgs e) { frmPatientRgister objfrmPatientRegister = new frmPatientRgister(); objfrmPatientRegister.Show(); Visible = false; }
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(); }
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); } }