Beispiel #1
0
        private void SetCommands()
        {
            var setResultCommand = ReactiveCommand.Create <bool>(confirmation =>
            {
                if (confirmation)
                {
                    Event.Command.Execute(null);
                }

                Event = null;
            });

            SetResultCommand = setResultCommand;
        }
Beispiel #2
0
        public void ExecuteCommandWithConfirmation(string title, string message, ICommand command)
        {
            var ev = new ShowConfirmationEvent(title, message, command);

            _eventAggregator.Publish(ev);
        }