internal AircraftForm(Aircraft aircraft) { InitializeComponent(); this.Aircraft = aircraft; this.Text = aircraft.Name; this.FormClosing += AircraftForm_FormClosing; UpdateGraphics(); }
private void AddNewAircraft() { Aircraft aircraft = new Aircraft("Aircraft " + aircraftCount, MakeDebugPlane()); aircraftList.Add(new AircraftForm(aircraft)); aircraftCount++; }