private void myWrittenPrescriptionsToolStripMenuItem_Click(object sender, EventArgs e) { ViewPrescriptionForm viewPrescriptionForm = new ViewPrescriptionForm(); viewPrescriptionForm.Tag = this; viewPrescriptionForm.ViewPrescriptionOfDoctor(); viewPrescriptionForm.ShowDialog(this); }
private void MyPrescriptionMenuItem_Click(object sender, EventArgs e) { ViewPrescriptionForm viewPrescriptionForm = new ViewPrescriptionForm(); viewPrescriptionForm.ViewPrescriptionOfPatient(); viewPrescriptionForm.Tag = this; viewPrescriptionForm.ShowDialog(this); }
private void prescriptionSearchButton_Click(object sender, EventArgs e) { string patientID = ForPatientTextBox.Text.ToString().Split('(', ')')[1]; ViewPrescriptionForm viewPrescriptionForm = new ViewPrescriptionForm(); viewPrescriptionForm.ViewPatientPrescriptionForDoctor(patientID); viewPrescriptionForm.Tag = this; viewPrescriptionForm.ShowDialog(this); }