コード例 #1
0
        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;
        }
コード例 #2
0
 private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     BusStopDetails = new BusScheduleDetails(LineService.ClientCredentials);
     BusStopDetails.RefreshAll += BusStopDetails_RefreshAll;
     this.DetailsContentControl.Content = BusStopDetails;
 }
コード例 #3
0
 private void BusStopDetails_RefreshAll(object sender, EventArgs e)
 {
         FillData();
         this.DetailsContentControl.Content = null;
         BusStopDetails = null;
 }