Exemple #1
0
        public void SaveRememberVideoData()
        {
            string lastVideoidData = null;

            if (LastVideoRemember != null && LastVideoRemember.Count > 0)
            {
                //把hashset表反序列化为字符串 存入独立存储
                lastVideoidData = JsonConvert.SerializeObject(LastVideoRemember);
            }
            WpStorage.SaveStringToIsoStore(lastVideosRememberIso, lastVideoidData);
            string allReVideoidData = null;

            if (RememberVideos != null && RememberVideos.Count > 0)
            {
                //把hashset表反序列化为字符串 存入独立存储
                allReVideoidData = JsonConvert.SerializeObject(RememberVideos);
            }
            WpStorage.SaveStringToIsoStore(VideosRememberIso, allReVideoidData);
            App.DownVideoModel.UpdateIsoSize();
        }
Exemple #2
0
        public void SaveVideoData()
        {
            string downingVideosData = null;

            if (DowningVideo != null &&  DowningVideo.Count > 0)
            {
                //把正在下载的列表反序列化为字符串 存入独立存储
                downingVideosData = JsonConvert.SerializeObject(DowningVideo);
            }
            WpStorage.SaveStringToIsoStore(downingVideosIso, downingVideosData);

            string downedVideosData = null;

            if (DownedVideo != null && DownedVideo.Count > 0)
            {
                //把已经下载的列表反序列化为字符串 存入独立存储
                downedVideosData = JsonConvert.SerializeObject(DownedVideo);
            }
            WpStorage.SaveStringToIsoStore(downedVideosIso, downedVideosData);
            UpdateIsoSize();
        }