private void OnClear(object sender, RoutedEventArgs e) { ChartStack.ClearCharts(); liveScrolling.Clear(); logs.Clear(); CategoryList.SelectedItem = null; allFlights.Clear(); if (currentFlightLog != null) { currentFlightLog.Clear(); logs.Add(currentFlightLog); } if (currentFlight != null) { currentFlight.Locations = new LocationCollection(); } SystemConsole.Clear(); myMap.Children.Clear(); ImageViewer.Source = null; ShowSchema(); }