コード例 #1
0
        /// <summary>
        /// Shows this dialog with the provided view model.
        /// </summary>
        /// <param name="viewModel"></param>
        /// <returns></returns>
        public static bool?ShowDialog(UpdateDetectedDialogModel viewModel)
        {
            var dialog = new UpdateDetectedDialog();

            dialog.SetModel(viewModel);
            return(dialog.ShowModal());
        }
コード例 #2
0
 void SetModel(UpdateDetectedDialogModel viewModel)
 {
     Host.DataContext   = viewModel;
     viewModel.Closing += OnModelClosing;
 }