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