CDP4CommonView.PrefixedUnitDialogViewModel.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 canExecuteInspectSelectedPrefixCommand = this.WhenAny(vm => vm.SelectedPrefix, v => v.Value != null);
            this.InspectSelectedPrefixCommand = ReactiveCommand.Create(canExecuteInspectSelectedPrefixCommand);
            this.InspectSelectedPrefixCommand.Subscribe(_ => this.ExecuteInspectCommand(this.SelectedPrefix));
        }