Exemple #1
0
 public bool CanExecute(object parameter)
 {
     if (CanExecuteHandler == null)
         return true;
     CanExecuteEventArgs e = new CanExecuteEventArgs(parameter);
     e.Owner = Owner;
     CanExecuteHandler(this, e);
     return !e.Cancel;
 }
        public bool CanExecute(object parameter)
        {
            if (CanExecuteHandler == null)
            {
                return(true);
            }
            CanExecuteEventArgs e = new CanExecuteEventArgs(parameter);

            e.Owner = Owner;
            CanExecuteHandler(this, e);
            return(!e.Cancel);
        }