public static MessageBoxResult Show(Window window, string message, string title, MessageBoxButton buttons, string buttonName1 = null, string buttonName2 = null, string buttonName3 = null)
        {
            TriggerMessageBox messageBox = new TriggerMessageBox(title, message, buttons, buttonName1, buttonName2, buttonName3);

            if (window == null || window.Visibility != Visibility.Visible)
            {
                messageBox.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            }
            else
            {
                messageBox.Owner = window;
            }
            messageBox.ShowDialog();
            return(messageBox.result);
        }
 public static MessageBoxResult Show(Window window, string message, string title, MessageBoxButton buttons, string buttonName1 = null, string buttonName2 = null, string buttonName3 = null)
 {
     TriggerMessageBox messageBox = new TriggerMessageBox(title, message, buttons, buttonName1, buttonName2, buttonName3);
     if (window == null || window.Visibility != Visibility.Visible)
         messageBox.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     else
         messageBox.Owner = window;
     messageBox.ShowDialog();
     return messageBox.result;
 }