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