Example #1
0
 protected override void SetValueImpl(object target, object value)
 {
     if (_canExecuteSubscription != null)
     {
         _canExecuteSubscription.Dispose();
         _canExecuteSubscription = null;
     }
     _command = value as ICommand;
     if (_command != null)
     {
         _canExecuteSubscription = _command.WeakSubscribe(_canExecuteEventHandler);
     }
     RefreshEnabledState();
 }
 public void Include(MvxCanExecuteChangedEventSubscription subsctiption)
 {
     subsctiption = new MvxCanExecuteChangedEventSubscription(null, null);
     subsctiption.Dispose();
 }