private void SearchButton_Click(object sender, EventArgs e) { string patientName = requestedPatientName.Text; Patient requestedPatient = DoctorClient.GetPatientData(patientName); if (requestedPatient != null) { historicData.Text = "Historic data found from: " + requestedPatient.ToString(); if (requestedPatient.Vo2 != 0) { historicData.Text = historicData.Text + "\r\n" + "The calculated Vo2 max of this patient is " + requestedPatient.Vo2 + " L/min"; } } else { historicData.Text = "No file could be located for this patient"; } }
private void searchButton_Click(object sender, EventArgs e) { DoctorClient.GetPatientData(patientName.Text); }