Esempio n. 1
0
 private void samuraiListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (!isLoading)
     {
         isListChanging = true;
         currentSamurai = data.LoadSamuraiGraph((int)samuraiListBox.SelectedValue);
         samuraiViewSource.ObjectInstance = currentSamurai;
         isListChanging = false;
     }
 }
Esempio n. 2
0
 private void SamuraiDataGrid_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     if (!_isLoading)
     {
         _isListChanging = true;
         _currentSamurai = _repo.LoadSamuraiGraph((int)samuraiListBox.SelectedValue);
         _samuraiViewSource.ObjectInstance = _currentSamurai;
         _isListChanging = false;
     }
 }