private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if(ListBox.SelectedItem != null)
     {
         busStopDetails = new BusStopDetails(BusStopService.ClientCredentials, (BusStop)ListBox.SelectedItem);
         busStopDetails.RefreshAll += BusStopDetails_RefreshAll;
         this.RightContentControl.Content = busStopDetails;
     }
 }
 private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     busStopDetails = new BusStopDetails(BusStopService.ClientCredentials);
     busStopDetails.RefreshAll += BusStopDetails_RefreshAll;
     RightContentControl.Content = busStopDetails;
 }
 private void BusStopDetails_RefreshAll(object sender, EventArgs e)
 {
     FillData();
     this.RightContentControl.Content = null;
     busStopDetails = null;
 }