From b02adc4c3f4a00b7179b02f9ea20391f922fd50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=BF=E4=B8=9C=E4=BA=9A?= Date: Thu, 19 Dec 2024 20:55:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=9C=80=E5=B0=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/PBAnaly/MainForm.cs | 6 +++++- src/PBAnaly/UI/BioanalyImagePanel.cs | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/PBAnaly/MainForm.cs b/src/PBAnaly/MainForm.cs index 0035da5..c9ffc6a 100644 --- a/src/PBAnaly/MainForm.cs +++ b/src/PBAnaly/MainForm.cs @@ -189,7 +189,11 @@ namespace PBAnaly private void MainForm_SizeChanged(object sender, EventArgs e) { - + //刷新 + foreach (var item in bioanalysisMannages) + { + item.Value.GetImagePanel.CenterPictureBox(); + } } private void materialButton_LoadData_Click(object sender, EventArgs e) diff --git a/src/PBAnaly/UI/BioanalyImagePanel.cs b/src/PBAnaly/UI/BioanalyImagePanel.cs index 63e01ff..ca345b3 100644 --- a/src/PBAnaly/UI/BioanalyImagePanel.cs +++ b/src/PBAnaly/UI/BioanalyImagePanel.cs @@ -265,8 +265,8 @@ namespace PBAnaly.UI int h = (int)(pl_bg_panel.Height * factor); if (w < pl_panel_image.Width - 50 || h < pl_panel_image.Height - 50) { - w = pl_panel_image.Width - 50; - h = pl_panel_image.Height - 50; + w = pl_panel_image.Width ; + h = pl_panel_image.Height ; } if (w > pl_panel_image.Width * 5 || h > pl_panel_image.Height * 5)