private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(patientNameTB.Text)) { MessageBox.Show("Please select a patient."); } else { ViewResults ss = new ViewResults(this); ss.Show(); } }
public TestResults(ViewResults viewResults) { this.viewResults = viewResults; }