예제 #1
0
 private void Save_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = ControlRoles.GetState(Model?.EditCommand) && Model?.Items.HasChanges == true;
 }
예제 #2
0
 private void Add_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = ControlRoles.GetState(Model?.EditCommand);
 }
예제 #3
0
 private void Delete_CanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     e.CanExecute = ControlRoles.GetState(Model?.EditCommand) && Model?.CurrentItem != null;
 }