Esempio n. 1
0
 /// <summary>
 /// Event handler for flight change events - flight info to listview
 /// </summary>
 /// <param name="sender">sender of the event</param>
 /// <param name="e">event arguments</param>
 private void OnChangesHandler(object sender, FlightEventsArgs e)
 {
     flightItems.Add(e);                // flight info added to flightItems
     Flights.ItemsSource = null;
     Flights.ItemsSource = flightItems; //flightItems to be displayed in ListView Flights
     Flights.UpdateLayout();
 }
Esempio n. 2
0
        /// <summary>
        /// Event handler for flight landed events - flight info to listview
        /// </summary>
        /// <param name="sender">sender of the event</param>
        /// <param name="e">event arguments</param>
        public void OnArrivalHandler(object sender, FlightEventsArgs e)
        {
            flightItems.Add(e);
            Flights.ItemsSource = null;
            Flights.ItemsSource = flightItems;

            Flights.UpdateLayout();
        }