public void Show(PoliceReport policeReport) { Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.White; ConsoleEx.Clear(); DisplayHeaders(policeReport.Month); DisplayGroupStats(policeReport.Groups.ToArray()); DisplayGovernmentStats(policeReport.PlayerStrength, policeReport.MonthlyRevolutionStrength); pressAnyKeyControl.Show(); }
/// <summary> /// Retrieves the police report with the current month, revolution strength, player strength and group information. /// </summary> /// <returns>The police report with the current month, revolution strength, player strength and group information.</returns> public PoliceReport GetPoliceReport() { PoliceReport policeReport = new PoliceReport { Month = governmentService.GetMonth(), Groups = groupService.GetGroups().AsReadOnly(), PlayerStrength = governmentService.GetPlayerStrength(), MonthlyRevolutionStrength = governmentService.GetMonthlyRevolutionStrength() }; return(policeReport); }
static void Main(string[] args) { HospitalReport hospitalReport = new HospitalReport(); PROCESSS process = new PROCESSS(hospitalReport); process.AttachCase(); PoliceReport policeReport = new PoliceReport(); process = new PROCESSS(policeReport); process.AttachCase(); Console.ReadKey(); }
/// <summary> /// Displays the police report screen. /// </summary> private void DisplayPoliceReportScreen() { PoliceReport policeReport = engine.GetPoliceReport(); userInterface.DisplayPoliceReportScreen(policeReport); }
public void DisplayPoliceReportScreen(PoliceReport policeReport) => policeReportScreen.Show(policeReport);