private void ShowInfo() { TimeSpan elapse = DateTime.Now - sim.StartTime; TimeSpan elapseWithoutMilli = new TimeSpan(elapse.Days, elapse.Hours, elapse.Minutes, elapse.Seconds); simElapsedTimeLabel.Text = elapseWithoutMilli.ToString(); patientsTotalNRLabel.Text = Data.GetNrOfAllPatients().ToString(); patientsCurrentNRLabel.Text = Data.GetNrOfCurentPatients().ToString(); patientsAvgWaitingLabel.Text = Data.GetAverageWaitingTime().ToString(); patientsAvgTreatLabel.Text = Data.GetAverageTreatTime().ToString(); patientsLeftLabel.Text = Data.GetNrOfLeftPatients().ToString(); patientsWaitingLabel.Text = Data.GerNrOfWaitingPatients().ToString(); patientsInRoomLabel.Text = Data.GetNrOfPatientsInRoom().ToString(); DeadTotalPatientsLabel.Text = Data.TotalNumberOfDeathPatients().ToString(); patientsATotalLabel.Text = Data.GetNrOfAllPatients(Category.A).ToString(); patientsACurrentLabel.Text = Data.GetNrOfCurentPatients(Category.A).ToString(); patientsAAvgWaitingLabel.Text = Data.GetAverageWaitingTime(Category.A).ToString(); patientsAAvgTreatLabel.Text = Data.GetAverageTreatTime(Category.A).ToString(); patientsALeftLabel.Text = Data.GetNrOfLeftPatients(Category.A).ToString(); patientsAWaitingLabel.Text = Data.GerNrOfWaitingPatients(Category.A).ToString(); patientsAInRoomLabel.Text = Data.GetNrOfPatientsInRoom(Category.A).ToString(); DeadPatientsALabel.Text = Data.NumberOfDeathPatientPerCat(Category.A).ToString(); patientsBTotalLabel.Text = Data.GetNrOfAllPatients(Category.B).ToString(); patientsBCurrentLabel.Text = Data.GetNrOfCurentPatients(Category.B).ToString(); patientsBAvgWaitingLabel.Text = Data.GetAverageWaitingTime(Category.B).ToString(); patientsBAvgTreatLabel.Text = Data.GetAverageTreatTime(Category.B).ToString(); patientsBLeftLabel.Text = Data.GetNrOfLeftPatients(Category.B).ToString(); patientsBWaitingLabel.Text = Data.GerNrOfWaitingPatients(Category.B).ToString(); patientsBInRoomLabel.Text = Data.GetNrOfPatientsInRoom(Category.B).ToString(); DeadPatientsBLabel.Text = Data.NumberOfDeathPatientPerCat(Category.B).ToString(); patientsCTotalLabel.Text = Data.GetNrOfAllPatients(Category.C).ToString(); patientsCCurrentLabel.Text = Data.GetNrOfCurentPatients(Category.C).ToString(); patientsCAvgWaitingLabel.Text = Data.GetAverageWaitingTime(Category.C).ToString(); patientsCAvgTreatLabel.Text = Data.GetAverageTreatTime(Category.C).ToString(); patientsCLeftLabel.Text = Data.GetNrOfLeftPatients(Category.C).ToString(); patientsCWaitingLabel.Text = Data.GerNrOfWaitingPatients(Category.C).ToString(); patientsCInRoomLabel.Text = Data.GetNrOfPatientsInRoom(Category.C).ToString(); DeadPatientsCLabel.Text = Data.NumberOfDeathPatientPerCat(Category.C).ToString(); patientsDTotalNrLabel.Text = Data.GetNrOfAllPatients(Category.C).ToString(); patientsDCurrentLabel.Text = Data.GetNrOfCurentPatients(Category.D).ToString(); patientsDAvgWaitingLabel.Text = Data.GetAverageWaitingTime(Category.D).ToString(); patientsDAvgTreatLabel.Text = Data.GetAverageTreatTime(Category.D).ToString(); patientsDLeftLabel.Text = Data.GetNrOfLeftPatients(Category.D).ToString(); patientsDWaitingLabel.Text = Data.GerNrOfWaitingPatients(Category.D).ToString(); patientsDInRoomLabel.Text = Data.GetNrOfPatientsInRoom(Category.D).ToString(); DeadPatientsDLabel.Text = Data.NumberOfDeathPatientPerCat(Category.D).ToString(); //SELECTED ROOM lbSelectedRoomCurrent.Text = Data.numberOfPatientsInRoom(); lbSelectedRoomTotal.Text = Data.allPatientsInRoom(); lbNumberOfBeds.Text = Data.numberOfBeds(); lbRoomSelectedAvailable.Text = Data.availableNROfBeds(); lbRoomSelectedOccupied.Text = Data.occupiedNROfBeds(); }
private void ShowInfo() { patientsTotalNRLabel.Text = Data.GetNrOfAllPatients().ToString(); patientsCurrentNRLabel.Text = Data.GetNrOfCurentPatients().ToString(); patientsAvgWaitingLabel.Text = Data.GetAverageWaitingTime().ToString("0.##"); patientsAvgTreatLabel.Text = Data.GetAverageTreatTime().ToString("0.##"); patientsLeftLabel.Text = Data.GetNrOfLeftPatients().ToString(); patientsWaitingLabel.Text = Data.GerNrOfWaitingPatients().ToString(); patientsInRoomLabel.Text = Data.GetNrOfPatientsInRoom().ToString(); DeadTotalPatientsLabel.Text = Data.TotalNumberOfDeathPatients().ToString(); patientsATotalLabel.Text = Data.GetNrOfAllPatients(Category.A).ToString(); patientsACurrentLabel.Text = Data.GetNrOfCurentPatients(Category.A).ToString(); patientsAAvgWaitingLabel.Text = Data.GetAverageWaitingTime(Category.A).ToString("0.##"); patientsAAvgTreatLabel.Text = Data.GetAverageTreatTime(Category.A).ToString("0.##"); patientsALeftLabel.Text = Data.GetNrOfLeftPatients(Category.A).ToString(); patientsAWaitingLabel.Text = Data.GerNrOfWaitingPatients(Category.A).ToString(); patientsAInRoomLabel.Text = Data.GetNrOfPatientsInRoom(Category.A).ToString(); DeadPatientsALabel.Text = Data.NumberOfDeathPatientPerCat(Category.A).ToString(); patientsBTotalLabel.Text = Data.GetNrOfAllPatients(Category.B).ToString(); patientsBCurrentLabel.Text = Data.GetNrOfCurentPatients(Category.B).ToString(); patientsBAvgWaitingLabel.Text = Data.GetAverageWaitingTime(Category.B).ToString("0.##"); patientsBAvgTreatLabel.Text = Data.GetAverageTreatTime(Category.B).ToString("0.##"); patientsBLeftLabel.Text = Data.GetNrOfLeftPatients(Category.B).ToString(); patientsBWaitingLabel.Text = Data.GerNrOfWaitingPatients(Category.B).ToString(); patientsBInRoomLabel.Text = Data.GetNrOfPatientsInRoom(Category.B).ToString(); DeadPatientsBLabel.Text = Data.NumberOfDeathPatientPerCat(Category.B).ToString(); patientsCTotalLabel.Text = Data.GetNrOfAllPatients(Category.C).ToString(); patientsCCurrentLabel.Text = Data.GetNrOfCurentPatients(Category.C).ToString(); patientsCAvgWaitingLabel.Text = Data.GetAverageWaitingTime(Category.C).ToString("0.##"); patientsCAvgTreatLabel.Text = Data.GetAverageTreatTime(Category.C).ToString("0.##"); patientsCLeftLabel.Text = Data.GetNrOfLeftPatients(Category.C).ToString(); patientsCWaitingLabel.Text = Data.GerNrOfWaitingPatients(Category.C).ToString(); patientsCInRoomLabel.Text = Data.GetNrOfPatientsInRoom(Category.C).ToString(); DeadPatientsCLabel.Text = Data.NumberOfDeathPatientPerCat(Category.C).ToString(); patientsDTotalNrLabel.Text = Data.GetNrOfAllPatients(Category.C).ToString(); patientsDCurrentLabel.Text = Data.GetNrOfCurentPatients(Category.D).ToString(); patientsDAvgWaitingLabel.Text = Data.GetAverageWaitingTime(Category.D).ToString("0.##"); patientsDAvgTreatLabel.Text = Data.GetAverageTreatTime(Category.D).ToString("0.##"); patientsDLeftLabel.Text = Data.GetNrOfLeftPatients(Category.D).ToString(); patientsDWaitingLabel.Text = Data.GerNrOfWaitingPatients(Category.D).ToString(); patientsDInRoomLabel.Text = Data.GetNrOfPatientsInRoom(Category.D).ToString(); DeadPatientsDLabel.Text = Data.NumberOfDeathPatientPerCat(Category.D).ToString(); }