Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 /// <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);
 }