Пример #1
0
        /// <summary>
        /// 开始上传线程,检查是否还有未上传的信息,如果有,则弹出对话框问是否显示
        /// </summary>
        /// <returns>true 表示有未上传信息,需要提示;false 表示没有未上传信息</returns>
        public void Start()
        {
            List <UploadEbBoxInfo> list = SqliteDataService.GetUnUploadEbBox();

            if (list != null && list.Count > 0)
            {
                foreach (UploadEbBoxInfo item in list)
                {
                    CurrentUploadQueue.Push(item);
                }
            }
            // 开始定时上传
            uploadTimer.Elapsed += UploadTimer_Elapsed;
            uploadTimer.Start();
        }