示例#1
0
        private void Read_arir(object sender, DoWorkEventArgs e)
        {
            DateTime oldDate = DateTime.Now;

            //初始化信息
            frmWater BusinessHelp = new frmWater();

            RResult = new List <Read__Status>();

            RResult = ReadfindngFile(inputFileName);


            //  var form = new frmWater();
            BusinessHelp.bgWorker1 = bgWorker;
            BusinessHelp.markpic(RResult, savepath);
            //if (form.ShowDialog() == DialogResult.OK)
            //{
            //    // InitializeDataSource();
            //}

            //string savepath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + DateTime.Now.ToString("yyyyMMddHHmmss");


            DateTime FinishTime = DateTime.Now;
            TimeSpan s          = DateTime.Now - oldDate;
            string   timei      = s.Minutes.ToString() + ":" + s.Seconds.ToString();
            string   Showtime   = clsShowMessage.MSG_029 + timei.ToString();

            bgWorker.ReportProgress(clsConstant.Thread_Progress_OK, clsShowMessage.MSG_009 + "\r\n" + Showtime);
        }
示例#2
0
        private void button4_Click(object sender, EventArgs e)
        {
            var form = new frmWater();

            if (form.ShowDialog() == DialogResult.OK)
            {
                // InitializeDataSource();
            }
        }