コード例 #1
0
 private void NewSamurai_Click(object sender, RoutedEventArgs e)
 {
     currentSamurai = data.CreateNewSamurai();
     samuraiViewSource.ObjectInstance = currentSamurai;
     samuraiListBox.SelectedItem      = currentSamurai;
 }
コード例 #2
0
 private void New_Click(object sender, RoutedEventArgs e)
 {
     _currentSamurai = _repo.CreateNewSamurai();
     _samuraiViewSource.ObjectInstance = _currentSamurai;
     samuraiListBox.SelectedItem       = _currentSamurai;
 }