示例#1
0
 /// <summary>
 /// Save account information to file
 /// </summary>
 /// <param name="Account"></param>
 /// <returns></returns>
 public bool Save(Account Account)
 {
     return(PlainTextData.SaveTo(CommonConstant.REMOTE_LOCKER_DATA, ';',
                                 Account.Username,
                                 Account.Password,
                                 Account.IdentifyCode
                                 ));
 }
示例#2
0
 public static void InitData()
 {
     if (!File.Exists(CommonConstant.REMOTE_LOCKER_DATA))
     {
         PlainTextData.SaveTo(
             CommonConstant.REMOTE_LOCKER_DATA, ';',
             "admin",
             "admin",
             Md5Sha1Encrypt.MD5Hashing("RemoteLocker.Default.IdentifyCode")
             );
     }
 }