//Извиква клас GenerateReport и създава обект newReport. static void GenerateReport(SortedDictionary <string, List <string> > dictionaryOfDates, Dictionary <string, List <string> > dictionaryOfMessages) { GenerateReport newReport = new GenerateReport(); newReport.Dates = dictionaryOfDates; newReport.Messages = dictionaryOfMessages; PrintReport(newReport); }
//Извиква метод CreateRecord от обекта newReport. static void PrintReport(GenerateReport newReport) { newReport.CreateRecord(); }