Mesen-X/GUI.NET/Forms/MesenMsgBox.cs
Souryo db9d88e582 Version Update: 0.1.3
-Fixed a number of startup bugs
-Packaged MSVC DLLs
2016-05-02 20:22:17 -04:00

23 lines
650 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesen.GUI.Forms
{
class MesenMsgBox
{
public static DialogResult Show(string text, MessageBoxButtons buttons, MessageBoxIcon icon, params string[] args)
{
string resourceText = ResourceHelper.GetMessage(text, args);
if(resourceText.StartsWith("[[")) {
return MessageBox.Show(string.Format("Critical error (" + text + ") {0}", args), "Mesen", buttons, icon);
} else {
return MessageBox.Show(ResourceHelper.GetMessage(text, args), "Mesen", buttons, icon);
}
}
}
}