Пример #1
0
        /// <summary>
        /// Shows the dialog.
        /// </summary>
        /// <param name="viewModel">The view model.</param>
        /// <param name="additionalSettings">Additional settings for the dialog.</param>
        /// <returns>The view model dialog's result.</returns>
        public virtual bool ShowDialog(object viewModel, IDictionary <string, object> additionalSettings = null)
        {
            var settings = DialogSettings.Create().Centered().WithIcon(_icon).Merge(additionalSettings);

            return(ShowDialogCore(viewModel, settings));
        }