상속: ICommand
예제 #1
0
 public AppDialogAdapterViewModel(object dialog, IDispatchServices svc)
 {
     _svc = svc;
     Dialog = dialog;
     Dialog.As<IDeactivate>(d => d.Deactivated += HandleDeactivation);
     Dialog.As<IHasTitle>(d => Title = d.Title);
     TrySetTitleColor(Dialog);
     Close = new RelayCommand(DoClose);
 }
예제 #2
0
 protected VisibleCommand()
 {
     _command = new RelayCommand(InternalCanExecute, InternalExecute);
 }