You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
895 B
C#

9 months ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Resources;
using System.Text;
namespace POSV.Language
{
public class LangUtils
{
private static object _lock = new object();
private static ResourceManager _rm = null;
private static LangUtils _instance = null;
public static LangUtils Instance
{
get
{
if (_instance == null)
{
lock (_lock)
{
_rm = new ResourceManager("POSV.Language.Language" , typeof(Language).Assembly);
_instance = new LangUtils();
}
}
return _instance;
}
}
public string GetString(string name)
{
return _rm.GetString(name);
}
}
}