|
using System;
namespace ObserverPattern
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Client
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
BangaloreAirlines AirLines= new BangaloreAirlines("EC 2012",2230);
NationalTravels National=new NationalTravels();
SouthernTravels Southern=new SouthernTravels();
AirLines.UpdateEvent += new BangaloreAirlines.UpdateHandler(National.UpdateBangaloreAirlinesRout);
AirLines.UpdateEvent += new BangaloreAirlines.UpdateHandler(Southern.UpdateBangaloreAirlinesRout);
AirLines.AddNewRout();
Console.ReadLine();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Sunil Kumar Works for Wipro Technologies, one of the leading software services company in the world. He is a Microsoft Certified Solution Developer(MCSD) in .NET