public static void Connect(string pseudo, string desc, string sexe, DateTime ddn, bool modo, BitmapImage profil, BitmapImage couverture) { lock (myLock) { if (instance != null) { throw new InvalidOperationException(); } instance = new UserCourant(pseudo, desc, sexe, ddn, modo, profil, couverture); } }
public static void SetNull() { instance = null; }