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);
 }
Esempio n. 2
0
 protected VisibleCommand()
 {
     _command = new RelayCommand(InternalCanExecute, InternalExecute);
 }