/// <summary> /// Creates a plane that is talen as parameter in changerouteevent /// </summary> /// <returns></returns> public ChangeRouteEvent ChangeRoute() { Plane p = new Plane(this.Title, "changed route to " + changeRouteCmbBox.SelectedItem.ToString(), DateTime.Now.ToString("hh:mm:ss")); ChangeRouteEvent changeRoutePlane = new ChangeRouteEvent(p); return(changeRoutePlane); }
/// <summary> /// Adds ChangeRoute into the list when the combobox in FlightWindow is changed /// </summary> /// <param name="sender"></param> /// <param name="cre"></param> public void OnChangeRoute(object sender, ChangeRouteEvent cre) { flightDataLst.Items.Add(cre); }