private void button1_Click(object sender, EventArgs e) { SortedList <string, string> rs = Vision.RunCam1Program(Vision.Tb1.Inputs["Image"].Value as Cognex.VisionPro.ICogImage); Vision_Cam1ResultAvailable(null, new VisionResultAvailableEventArgs(Vision.Tb1.CreateLastRunRecord(), rs)); }
private void btnRun1_Click(object sender, EventArgs e) { string rs = string.Join("\r\n", Vision.RunCam1Program(Vision.Tb1.Inputs["Image"].Value as ICogImage)); MsgBox.Show(rs); }