private void UpdateDownLoadProgress(string taskName, int progress) { SqlOperate operate = new SqlOperate(); operate.CreateOrOpenDataBase("task.db"); operate.UpdateData("pageDownLoad", progress.ToString(), taskName); operate.CloseDataBase(); }
private void DownAllFinished(object sender, DownLoadArgs args) { string caption = args.TaskName + " 下载完成!"; SqlOperate operate = new SqlOperate(); operate.CreateOrOpenDataBase("task.db"); operate.UpdateData("isFinished", "1", args.TaskName); this.Invoke(new Action(() => { this.Text = caption; })); operate.CloseDataBase(); ShowMessage(caption); }