public void ProcessCommand(BaseCommand command) { CommandMessage message = _messenger.CreateMessage <CommandMessage>(); message.Command = command; _messenger.Send(message); }
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); }
private void RaiseContentChanged(BaseViewModel content) { var message = _messenger.CreateMessage <ContentChangedMessage>(); message.Content = content; _messenger.Send(message); }