//View Prescription button private void button1_Click(object sender, EventArgs e) { if (isAssessmentCompleted()) //checking wheather assesment is completed or not { ViewPrescription vp = new ViewPrescription(this.username); vp.ShowDialog(); } else { lblNote.Visible = true; } }
private void btnVP1_Click(object sender, EventArgs e) { ViewPrescription vp = new ViewPrescription(this.patient_username1); vp.ShowDialog(); }