Esempio n. 1
0
 public void save()
 {
     if (accInfo != null)
     {
         accInfo.bagstatus = new BagOfStatus[mDicBagStatus.Count];
         mDicBagStatus.Values.CopyTo(accInfo.bagstatus, 0);
         persist.WriteToLocalFileSystem(accInfo, AES_ENCRYPT);
     }
 }
 public void save()
 {
     if (userInfo != null)
     {
         persist.WriteToLocalFileSystem(userInfo, AES_ENCRYPT);
     }
 }
 public void save(DataPersistManager persist, HttpDataNoElement[] data)
 {
     if (data != null)
     {
         httpNo = data;
         mType  = DataType.HTTP_COMPLETE;
         persist.WriteToLocalFileSystem(this, AES_ENCRYPT);
     }
 }
    //服务器上读取到了,写到文件里面,覆盖或追加写入
    private void saveTofile()
    {
        cachedlocal       = new NoticeLocal();
        cachedlocal.tips  = cached.ToArray();
        cachedlocal.mType = DataType.TIPS_CONFIG;

        if (maxValidate > 30)
        {
            persist.WriteToLocalFileSystem(cachedlocal, AES_ENCRYPT);
        }
        else
        {
            persist.AppendToLocalFileSystem(cachedlocal, AES_ENCRYPT);
        }
    }