private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if(ListBox.SelectedItem != null)
            {

            }
            BusStopDetails = new BusScheduleDetails(LineService.ClientCredentials, (Line)ListBox.SelectedItem);
            BusStopDetails.RefreshAll += BusStopDetails_RefreshAll;
            this.DetailsContentControl.Content = BusStopDetails;
        }
 private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     BusStopDetails = new BusScheduleDetails(LineService.ClientCredentials);
     BusStopDetails.RefreshAll += BusStopDetails_RefreshAll;
     this.DetailsContentControl.Content = BusStopDetails;
 }
 private void BusStopDetails_RefreshAll(object sender, EventArgs e)
 {
         FillData();
         this.DetailsContentControl.Content = null;
         BusStopDetails = null;
 }