예제 #1
0
        private static void UpdateEmployeeCanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            bool isValid = MyValidator.IsModelValid(sender as DependencyObject);

            e.CanExecute = CurrentEmployee.Id != 0 && CurrentEmployee.IsChanged && isValid;
        }