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