Пример #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;
 }