示例#1
0
 public static void Reload()
 {
     _Current = Load <SystemCodes>("SystemCodes.xml");
     if (_Current == null)
     {
         _Current = new SystemCodes();
     }
     else
     {
         ResetCodes();
     }
 }
示例#2
0
 public static void Clear()
 {
     lock (_LoadLock)
     {
         if (_Current != null)
         {
             _Current.Items.Clear();
             _Codes   = null;
             _Current = null;
         }
     }
 }