Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var view      = new FlightsForm();
            var presenter = new FlightsPresenter(view);

            Application.Run(view);
        }
 public FlightsPresenter(FlightsForm view)
 {
     _view = view;
     _view.FlightsQueried += UpdateFlightsView;
     _view.FlightsByDepartureCityQueried += UpdateFilteredFlightsView;
 }