示例#1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     _isLoading = true;
     battleListBox.ItemsSource = _repo.BattlesListInMemory();
     _battleViewSource         = (ObjectDataProvider)FindResource("battleViewSource");
     _isLoading = false;
     battleListBox.SelectedIndex = 0;
 }