Ejemplo n.º 1
0
 public static TM_UserData ReloadData(this TM_UserData userData)
 {
     userData.SetUp();
     userData.loadTmUserData();
     userData.createDefaultAdminUser();  // make sure the admin user exists and is configured
     return(userData);
 }
Ejemplo n.º 2
0
 public static bool setUserDataPath(this TM_UserData userData, string userDataPath)
 {
     if (userDataPath.dirExists().isFalse())
     {
         "[TM_UserData][setUserDataPath] provided userDataPath didn't exist: {0}".error("userDataPath");
         return(false);
     }
     try
     {
         userData.Path_UserData = userDataPath;
         userData.ResetData();
         userData.SetUp();
         userData.loadTmUserData();
         return(true);
     }
     catch (Exception ex)
     {
         ex.log("[TM_UserData][setUserDataPath]");
         return(false);
     }
 }