예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            GUI = new BuilderGUI();
            Scenario scenario = Scenario.Instance;

            scenario.SetView(GUI);
            Application.Run(GUI);
        }
예제 #2
0
 /// Set scenario GUI instance
 /// </summary>
 /// <param name="view"></param>
 ///   /// <summary>
 /// Get scenario instance
 /// </summary>
 public void SetView(BuilderGUI view)
 {
     airportNotifier   = new AirportNotifier(view.OnAirportCreated);
     aircraftNotifier  = new AircraftNotifier(view.OnAircraftCreated);
     selectionNotifier = new SelectionNotifier(view.OnAirportSelected);
 }