public void AddRunway(Runway runway) { //DGW_runway.Rows.Insert(0, runway.Number, runway.LengthRunway, RunwayViewStatus[Runway.RunwayStatusCode.Free]); airport.AddRunway(runway); RefreshViewOfAirport(); }
private void AddRunwayBtn_Click(object sender, EventArgs e) { Form1 main = this.Owner as Form1; if (main != null) { Runway pln = MakeRunway(); main.AddRunway(pln); this.Close(); } }
public void AddRunway(Runway runway) { _RunwayList.Add(runway); }