CDP4CommonView.NoteDialogViewModel.InitializeCommands C# (CSharp) Метод

InitializeCommands() защищенный Метод

Initializes the ICommands of this dialog
protected InitializeCommands ( ) : void
Результат void
        protected override void InitializeCommands()
        {
            base.InitializeCommands();
            var canExecuteInspectSelectedOwnerCommand = this.WhenAny(vm => vm.SelectedOwner, v => v.Value != null);
            this.InspectSelectedOwnerCommand = ReactiveCommand.Create(canExecuteInspectSelectedOwnerCommand);
            this.InspectSelectedOwnerCommand.Subscribe(_ => this.ExecuteInspectCommand(this.SelectedOwner));
        }