public bool ShowResultDialog(ResultBaseViewModel contentViewModel) { var message = _messenger.CreateMessage <ShowChildWindowMessage>(); var viewModel = (ResultDialogViewModel)_viewModelFactory.GetChild <ResultDialogViewModel>(contentViewModel); message.Content = viewModel; message.IsDialog = true; _messenger.Send(message); return(viewModel.Status); }
public ResultDialogViewModel(ResultBaseViewModel content) { _title = content.Title; Content = content; }