Exemple #1
0
        /// <summary>
        /// Shows this dialog with the provided view model.
        /// </summary>
        /// <param name="viewModel"></param>
        /// <returns></returns>
        public static bool?ShowDialog(ErrorDialogModel viewModel)
        {
            var dialog = new ErrorDialog();

            dialog.SetModel(viewModel);
            return(dialog.ShowModal());
        }
Exemple #2
0
 void SetModel(ErrorDialogModel viewModel)
 {
     Host.DataContext   = viewModel;
     viewModel.Closing += OnModelClosing;
 }