Beispiel #1
0
 public static void Clear()
 {
     lock (_LoadLock)
     {
         if (_Current != null)
         {
             _Current = null;
         }
     }
 }
Beispiel #2
0
 public static void Reload()
 {
     _Current = Load <LangTexts>("LangTexts.xml");
     if (_Current == null)
     {
         _Current = new LangTexts();
     }
     else
     {
         _Current.Items.ForEach(d =>
         {
             _Current._Texts[d.Name.ToLower()] = d.Text;
             _Current._Texts[d.ID.ToLower()]   = d.Text;
         });
     }
 }