コード例 #1
0
        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);
        }
コード例 #2
0
 public ResultDialogViewModel(ResultBaseViewModel content)
 {
     _title = content.Title;
     Content = content;
 }