Exemplo n.º 1
0
        public void ProcessCommand(BaseCommand command)
        {
            CommandMessage message = _messenger.CreateMessage <CommandMessage>();

            message.Command = command;
            _messenger.Send(message);
        }
Exemplo n.º 2
0
        public bool ShowConfirmationDialog(string messageText)
        {
            var message   = _messenger.CreateMessage <ShowChildWindowMessage>();
            var viewModel = (ConfirmDialogViewModel)_viewModelFactory.GetChild <ConfirmDialogViewModel>(messageText);

            message.Content  = viewModel;
            message.IsDialog = true;
            _messenger.Send(message);
            return(viewModel.Status);
        }
Exemplo n.º 3
0
        private void RaiseContentChanged(BaseViewModel content)
        {
            var message = _messenger.CreateMessage <ContentChangedMessage>();

            message.Content = content;
            _messenger.Send(message);
        }