private void btn_process_Click(object sender, EventArgs e) { Task t = new Task(); ImgSourceEvent ise = new ImgSourceEvent(t); ImgPreProcessEvent ipe = new ImgPreProcessEvent(t); t.Events.Add(ise); t.Events.Add(ipe); ipe.config.SelectImgIndex = 1; t.Imgs.Add(new ImgDictionary(new ImgPreProcessConfig(), copyImg, 0)); ipe.ShowDialog(); if (ipe.OutputImg != null) { mPicBox1.Image = ipe.OutputImg; roi.Attach(mPicBox1.Image); mPicBox1.Refresh(); } }
internal ImgSourceFrm(ImgSourceEvent imgevent) { InitializeComponent(); imgEvent = imgevent; }