This commit is contained in:
cloud301530 2024-12-19 22:03:19 +08:00
commit 06ec342749
2 changed files with 7 additions and 3 deletions

View File

@ -189,7 +189,11 @@ namespace PBAnaly
private void MainForm_SizeChanged(object sender, EventArgs e) 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) private void materialButton_LoadData_Click(object sender, EventArgs e)

View File

@ -265,8 +265,8 @@ namespace PBAnaly.UI
int h = (int)(pl_bg_panel.Height * factor); int h = (int)(pl_bg_panel.Height * factor);
if (w < pl_panel_image.Width - 50 || h < pl_panel_image.Height - 50) if (w < pl_panel_image.Width - 50 || h < pl_panel_image.Height - 50)
{ {
w = pl_panel_image.Width - 50; w = pl_panel_image.Width ;
h = pl_panel_image.Height - 50; h = pl_panel_image.Height ;
} }
if (w > pl_panel_image.Width * 5 || h > pl_panel_image.Height * 5) if (w > pl_panel_image.Width * 5 || h > pl_panel_image.Height * 5)