Example #1
0
        private void tsbEditVpp_Click(object sender, EventArgs e)
        {
            Vision.FrmToolBlock frmToolBlock = new Vision.FrmToolBlock();
            frmToolBlock.ToolBlockSave += FrmToolBlock_ToolBlockSave;
            CogToolBlock backTool = (CogToolBlock)VisionProTool.CopyTool(processToolBlock);

            frmToolBlock.ShowEdit(null, null, false, false, backTool, backTool, 1, "vpp编辑");
        }
Example #2
0
        private void tsbEditCamera_Click(object sender, EventArgs e)
        {
            Vision.FrmCameraEdit frmCameraEdit = new Vision.FrmCameraEdit();
            bool           save;
            CogAcqFifoTool backTool = (CogAcqFifoTool)VisionProTool.CopyTool(acqFifoTool);
            CogAcqFifoTool tool     = frmCameraEdit.ShowEdit(backTool, "相机编辑", out save);

            if (save)
            {
                acqFifoTool = tool;
            }
            CogSerializer.SaveObjectToFile(acqFifoTool, GetValue("CameraVppPath"));
        }