Beispiel #1
0
        public void SendBreakingNews(string title, string content, DateTime date)
        {
            NewsEventsArgs BreakingNews = new NewsEventsArgs(title, content, date);

            if (EventBreakingNews == null)
            {
                Console.WriteLine("No subs");
                return;
            }
            EventBreakingNews(this, BreakingNews);
        }
 public void PrintNews(object obj, NewsEventsArgs e)
 {
     Console.WriteLine($"{e.Title},{e.Content},{e.Date}");
 }