Пример #1
0
        //Извиква клас 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);
        }
Пример #2
0
 //Извиква метод CreateRecord от обекта newReport.
 static void PrintReport(GenerateReport newReport)
 {
     newReport.CreateRecord();
 }