Beispiel #1
0
 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;
 }
Beispiel #2
0
 public static void Refresh() {
   instance = null;
 }