Beispiel #1
0
        private void StartToCheckUrl(object o)
        {
            string[] thisUrlArray = o as string[];

            BLLOperatePic bop    = new BLLOperatePic();
            List <string> reList = bop.CheckPicUrl(thisUrlArray);

            foreach (string picUrl in reList)
            {
                sb2.Append(picUrl + "\n");
            }

            UrlCheck.Enabled  = true;
            textBox2.Text     = "校验完成。点击合并结果按钮获得校验结果~";
            BtnGather.Enabled = true;
        }
Beispiel #2
0
        //双线程操作
        private void StartOperate2(object secondArray)
        {
            string[] secondArr = secondArray as string[];

            BLLOperatePic bop = new BLLOperatePic();

            //在数据库查询所有图片
            bop.BllSearchPic(secondArr);
            //剪切新增的图片
            bop.CutPicAndInsertSql(TxtAimPath.Text + "\\");

            Console.WriteLine("\n" + "正在准备将新图片录入数据库......" + "\n");

            //把新增的图片名插入数据库
            bop.InsertIntoMysql();

            Console.WriteLine("\n" + "\n" + "操作成功!图片录入完成。");

            richTextBox1.Text   = "图片批量操作完成。";
            StartRecord.Enabled = true;
        }