Exemplo n.º 1
0
        //添加下载记录
        private void AddDownRecord(string TaskName, string downLoadUrl, string savePath, int pageCount, int progress, int finished)
        {
            SqlOperate operate = new SqlOperate();

            operate.CreateOrOpenDataBase("task.db");
            operate.InsertData("task", TaskName, downLoadUrl, savePath, pageCount, progress, finished);
            operate.CloseDataBase();
        }