예제 #1
0
 public static void ShowWarning(IWin32Window parent, string message, string helpPath)
 {
     if (string.IsNullOrWhiteSpace(helpPath))
     {
         MessageBox.Show(parent, message, Texts.GetString("Warning"), MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, Constants.GetMessageBoxOptions());
     }
     MessageBox.Show(parent, message, Texts.GetString("Warning"), MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, Constants.GetMessageBoxOptions(), helpPath);
 }
예제 #2
0
 public static void ShowHelp(IWin32Window parent, string helpText, string helpPath)
 {
     if (helpPath == null)
     {
         MessageBox.Show(parent, helpText, Texts.GetString("Help"), MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, Constants.GetMessageBoxOptions());
     }
     else
     {
         MessageBox.Show(parent, helpText, Texts.GetString("Help"), MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, Constants.GetMessageBoxOptions(), helpPath);
     }
 }
예제 #3
0
        public static void ShowError(IWin32Window parent, string message, string helpPath)
        {
            if (string.IsNullOrWhiteSpace(helpPath))
            {
                MessageBox.Show(parent, message, null, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, Constants.GetMessageBoxOptions());
            }

            MessageBox.Show(parent, message, null, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, Constants.GetMessageBoxOptions(), helpPath);
        }