public void EndMusicConcert() { // Handle the end of broadcasting of a musci concert... // ... // ... // lastly add back news updates after concert subject.AddObserver(this); var color = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(" <----------------- End of Music concert --------------> "); Console.ForegroundColor = color; }
public NewsChannel1(NewsAgency agency) { agency.AddObserver(this); }
public SportsChannel(NewsAgency agency) { agency.AddObserver(this); }
public MusicNowChannel(NewsAgency agency) { subject = agency; subject.AddObserver(this); }