示例#1
0
 public void ReadData()
 {
     if (ReadWriteData.Exists(ReadWriteData.File_DataUploadDownload))
     {
         var readerjson = ReadWriteData.Read(ReadWriteData.File_DataUploadDownload);
         if (readerjson != null)
         {
             try
             {
                 this.ItemsTransfer = JsonConvert.DeserializeObject <TransferListViewData>(readerjson.ReadToEnd());
             }
             catch (Exception)
             {
                 readerjson.Close();
                 ReadWriteData.Delete(ReadWriteData.File_DataUploadDownload);
             }
         }
     }
 }