/// <summary> Показать окно Exception </summary>
        public static void Show(Exception exception)
        {
            var windowMessageBox = new WindowMessageBox
            {
                WindowStartupLocation = WindowStartupLocation.CenterScreen,
                TextBlockText         = { Text = exception.Message },
                Title = "Unhandled Exception"
            };

            windowMessageBox.ButtonOk.Visibility = Visibility.Visible;

            windowMessageBox.ImageError.Visibility = Visibility.Visible;

            windowMessageBox.ShowDialog();
        }
        /// <summary> Показать окно с текстом по центру экрана </summary>
        public static void Show(string text)
        {
            var windowMessageBox = new WindowMessageBox
            {
                WindowStartupLocation = WindowStartupLocation.CenterScreen,
                TextBlockText         = { Text = text },
                Title = Application.Current.TryFindResource(@"WindowMessageBox_Information")?.ToString()
            };

            windowMessageBox.ButtonOk.Visibility = Visibility.Visible;

            windowMessageBox.ImageInformation.Visibility = Visibility.Visible;

            windowMessageBox.ShowDialog();
        }
        /// <summary> Показать окно </summary>
        public static WindowMessageBoxButonEnum?Show(System.Windows.Window window, string header, string text, WindowMessageBoxButonEnum windowMessageBoxButonEnum, WindowMessageBoxTypeEnum windowMessageBoxTypeEnum)
        {
            var windowMessageBox = new WindowMessageBox
            {
                Owner         = window,
                TextBlockText = { Text = text },
                Title         = header
            };

            switch (windowMessageBoxButonEnum)
            {
            case WindowMessageBoxButonEnum.Ok:
                windowMessageBox.ButtonOk.Visibility = Visibility.Visible;
                break;

            case WindowMessageBoxButonEnum.OkCancel:
                windowMessageBox.ButtonOk.Visibility     = Visibility.Visible;
                windowMessageBox.ButtonCancel.Visibility = Visibility.Visible;
                break;

            case WindowMessageBoxButonEnum.Yes:
                windowMessageBox.ButtonYes.Visibility = Visibility.Visible;
                break;

            case WindowMessageBoxButonEnum.YesCancel:
                windowMessageBox.ButtonYes.Visibility    = Visibility.Visible;
                windowMessageBox.ButtonCancel.Visibility = Visibility.Visible;
                break;

            case WindowMessageBoxButonEnum.YesNo:
                windowMessageBox.ButtonYes.Visibility = Visibility.Visible;
                windowMessageBox.ButtonNo.Visibility  = Visibility.Visible;
                break;

            case WindowMessageBoxButonEnum.YesNoCancel:
                windowMessageBox.ButtonYes.Visibility    = Visibility.Visible;
                windowMessageBox.ButtonNo.Visibility     = Visibility.Visible;
                windowMessageBox.ButtonCancel.Visibility = Visibility.Visible;
                break;

            case WindowMessageBoxButonEnum.ContinueCancel:
                windowMessageBox.ButtonContinue.Visibility = Visibility.Visible;
                windowMessageBox.ButtonCancel.Visibility   = Visibility.Visible;
                break;
            }

            switch (windowMessageBoxTypeEnum)
            {
            case WindowMessageBoxTypeEnum.Information:
                windowMessageBox.ImageInformation.Visibility = Visibility.Visible;
                break;

            case WindowMessageBoxTypeEnum.Warning:
                windowMessageBox.ImageWarning.Visibility = Visibility.Visible;
                break;

            case WindowMessageBoxTypeEnum.Error:
                windowMessageBox.ImageError.Visibility = Visibility.Visible;
                break;

            case WindowMessageBoxTypeEnum.Question:
                windowMessageBox.ImageQuestion.Visibility = Visibility.Visible;
                break;
            }

            windowMessageBox.ShowDialog();

            return(windowMessageBox._result);
        }