From 29b2a11539ebadf230ec2e0b07764f8ba72b86ce Mon Sep 17 00:00:00 2001 From: moco Date: Fri, 6 Dec 2024 21:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9E=E7=BB=AD=E7=B2=98?= =?UTF-8?q?=E8=B4=B4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/PBAnaly/Module/BioanalysisMannage.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/PBAnaly/Module/BioanalysisMannage.cs b/src/PBAnaly/Module/BioanalysisMannage.cs index 24c96f8..a893aaa 100644 --- a/src/PBAnaly/Module/BioanalysisMannage.cs +++ b/src/PBAnaly/Module/BioanalysisMannage.cs @@ -1619,6 +1619,7 @@ namespace PBAnaly.Module { imagePanel.ctms_strop.Enabled = true; imagePanel.ctms_strop_copy.Enabled = false; + imagePanel.ctms_strop_delete.Enabled = false; imagePanel.ctms_strop_stickup.Enabled = curIsCopy; if (ImageProcess.IsPointOnLine(readLoction,startPoint,endPoint,CircleRadius)) { @@ -1630,12 +1631,14 @@ namespace PBAnaly.Module curShape = ShapeForm.Circle; curShapeIndex = index1; imagePanel.ctms_strop_copy.Enabled = true; + imagePanel.ctms_strop_delete.Enabled = true; } else if (IsPointInRectangles(readLoction, rectangles, out var cner, out var cr, out var index)) { curShape = ShapeForm.Rect; curShapeIndex = index; imagePanel.ctms_strop_copy.Enabled = true; + imagePanel.ctms_strop_delete.Enabled = true; } else if (drawpolygon==false && IsPointInPolygon(readLoction, curPolygonAndInfoList)) { @@ -1704,7 +1707,7 @@ namespace PBAnaly.Module default: break; } - curIsCopy = false; + imagePanel.image_pl.Invalidate(); } private void Ctms_strop_delete_Click(object sender, EventArgs e) @@ -1738,7 +1741,7 @@ namespace PBAnaly.Module default: break; } - curShape = ShapeForm.None; + // curShape = ShapeForm.None; imagePanel.image_pl.Invalidate(); }