示例#1
0
 public static FormUserState GetInstance()
 {
     if (_instance == null)
     {
         lock (typeof(FormUserState))
         {
             if (_instance == null)
             {
                 _instance = new FormUserState();
             }
         }
     }
     return(_instance);
 }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 public static void DeleteInstance()
 {
     Debug.Assert(_instance != null);
     _instance = null;
 }