private void MouseDown(object sender, HalconDotNet.HMouseEventArgs e) { if (e.Button == MouseButtons.Left) { if ((Control.ModifierKeys & Keys.Control) == Keys.Control) { if (roiManager.ROIList.Count > 0) { var roi = Clone(roiManager.ROIList[roiManager.ROIList.Count - 1]); roiManager.CopyROIShape(roi as ROI, (double)e.X, (double)e.Y); } } } }