public static LocCfg Instance() { if (instance == null) { var fn = HostingEnvironment.ApplicationPhysicalPath + "app_data/Trados.xml"; if (!File.Exists(fn)) fn = @"d:\LMCom\rew\Web4\App_Data\Trados.xml"; instance = (LocCfg)XmlUtils.FileToObject(fn, typeof(LocCfg)); } return instance; }
public static void Refresh() { instance = null; }