private void clearTotalsButton_Click(object sender, EventArgs e) // CLEARS TOTALS ON CONFIRMATION { if (MessageBox.Show("Click YES to Clear totals", "RESET TOTALS", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button2) == System.Windows.Forms.DialogResult.Yes) { aPatient = new ProcessPatient(true); // Totals cleared in both business and derived tier. aPatient = new SpecialProcessPatient(true); } }
// ************************************ PROCESSING DATA METHODS ****************************************** // *********** Basic method that processes the data records with random number generation follows next ************ private void ProcessPatientRecords() // if then controls which tier is used for calculations based on check box. { if (!specialPatientCheckBox.Checked) { aPatient = new ProcessPatient(currentPatientMaximumMonthsForTrialInteger, AccumulateWalkInPatientsBoolean); } else { aPatient = new SpecialProcessPatient(currentPatientMaximumMonthsForTrialInteger, AccumulateSpecialWalkInPatientsBoolean); } }