예제 #1
0
 private void EditButton_Click(object sender, RoutedEventArgs e)
 {
     // Set selected item
     _viewModel.Entity = (User)((Button)sender).Tag;
     // Go into Edit mode
     _viewModel.BeginEdit(false);
 }
예제 #2
0
 private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     _viewModel.BeginEdit(true);
 }