예제 #1
0
 public static void Uninitialize()
 {
     if (UserSetting != null)
     {
         UserSetting.Dispose();
     }
     if (GlobalSetting != null)
     {
         GlobalSetting.Dispose();
     }
 }
예제 #2
0
 public static void InitializeUserSetting(string userName, LiteDB.LiteDatabase db)
 {
     if (UserSetting != null)
     {
         if (UserSetting.UserName != userName)
         {
             UserSetting.Dispose();
         }
         UserSetting = null;
     }
     UserSetting = new ApplicationUserSettingStorage(userName, db);
 }