static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); GUI = new BuilderGUI(); Scenario scenario = Scenario.Instance; scenario.SetView(GUI); Application.Run(GUI); }
/// 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); }