mirror of https://github.com/2dust/v2rayN
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using System.Globalization;
|
|
using System.Windows.Forms;
|
|
|
|
namespace v2rayN
|
|
{
|
|
class UI
|
|
{
|
|
public static void Show(string msg)
|
|
{
|
|
MessageBox.Show(msg, "v2rayN", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
|
}
|
|
|
|
public static DialogResult ShowYesNo(string msg)
|
|
{
|
|
return MessageBox.Show(msg, "YesNo", MessageBoxButtons.YesNo);
|
|
}
|
|
|
|
//public static string GetResourseString(string key)
|
|
//{
|
|
// CultureInfo cultureInfo = null;
|
|
// try
|
|
// {
|
|
// string languageCode = this.LanguageCode;
|
|
// cultureInfo = new CultureInfo(languageCode);
|
|
// return Common.ResourceManager.GetString(key, cultureInfo);
|
|
// }
|
|
// catch (Exception)
|
|
// {
|
|
// //默认读取英文的多语言
|
|
// cultureInfo = new CultureInfo(MKey.kDefaultLanguageCode);
|
|
// return Common.ResourceManager.GetString(key, cultureInfo);
|
|
// }
|
|
//}
|
|
|
|
}
|
|
|
|
|
|
}
|