Esempio n. 1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     _isLoading = true;
     samuraiListBox.ItemsSource = _repo.SamuraisListInMemory();
     _samuraiViewSource         = (ObjectDataProvider)FindResource("SamuraiViewSource");
     _isLoading = false;
     samuraiListBox.SelectedIndex = 0;
 }
Esempio n. 2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     this.isLoading               = true;
     samuraiListBox.ItemsSource   = data.SamuraisListInMemory();
     this.samuraiViewSource       = (ObjectDataProvider)FindResource(config.samuraiViewSource);
     this.isLoading               = false;
     samuraiListBox.SelectedIndex = 0;
 }
Esempio n. 3
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     this.isLoading = true;
     samuraiListBox.SelectedItem = data.SamuraisListInMemory();
     //this.samuraiViewSource = (BindingList<Samurai>)FindResource(config.samuraiViewSource);
     this.isLoading = false;
     samuraiListBox.SelectedIndex = 0;
 }