CDP4CommonView.NoteDialogViewModel.InitializeCommands C# (CSharp) Method

InitializeCommands() protected method

Initializes the ICommands of this dialog
protected InitializeCommands ( ) : void
return 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));
        }