private void ultraBtnPEdit_Click(object sender, EventArgs e) { objfrmNewPatient = new frmNewPatient(); objfrmNewPatient.id = Pat_id.ToString(); objfrmNewPatient.name = Pat_name.ToString(); objfrmNewPatient.phone = Pat_phone.ToString(); objfrmNewPatient.emergencyContact = Pat_emergency.ToString(); objfrmNewPatient.address = Pat_address.ToString(); objfrmNewPatient.dob = Pat_dob.ToString(); objfrmNewPatient.dor = Pat_dor.ToString(); objfrmNewPatient.strFormMode = "EDIT"; objfrmNewPatient.ShowDialog(); }
private void ultraBtnPNew_Click(object sender, EventArgs e) { objfrmNewPatient = new frmNewPatient(); objfrmNewPatient.strFormMode = "NEW"; objfrmNewPatient.ShowDialog(); }