using DevExpress.XtraEditors;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Windows.Forms;
|
|
namespace IStation.WinFrmUI
|
{
|
public static class MyMessageBox
|
{
|
public static void InfomationShow(string str)
|
{
|
if (System.Globalization.CultureInfo.CurrentCulture.Name.Equals("zh-CN"))
|
{
|
XtraMessageBox.Show(str, "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
}
|
else
|
{
|
XtraMessageBox.Show(str, "Notice", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
}
|
}
|
|
public static DialogResult WarningShow(string str)
|
{
|
if (System.Globalization.CultureInfo.CurrentCulture.Name.Equals("zh-CN"))
|
{
|
return XtraMessageBox.Show(str, "警告", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
}
|
else
|
{
|
return XtraMessageBox.Show(str, "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
}
|
}
|
|
public static DialogResult StopShow(string str)
|
{
|
if (System.Globalization.CultureInfo.CurrentCulture.Name.Equals("zh-CN"))
|
{
|
return XtraMessageBox.Show(str, "错误", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
}
|
else
|
{
|
return XtraMessageBox.Show(str, "Error", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
}
|
}
|
|
|
|
|
}
|
|
|
}
|