private void NewSamurai_Click(object sender, RoutedEventArgs e) { currentSamurai = data.CreateNewSamurai(); samuraiViewSource.ObjectInstance = currentSamurai; samuraiListBox.SelectedItem = currentSamurai; }
private void New_Click(object sender, RoutedEventArgs e) { _currentSamurai = _repo.CreateNewSamurai(); _samuraiViewSource.ObjectInstance = _currentSamurai; samuraiListBox.SelectedItem = _currentSamurai; }