From 4b3a410a5083970bb2e56d2ab459d860c4fa22d0 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期二, 30 十二月 2025 15:50:42 +0800
Subject: [PATCH] 添加单流程多相机处理功能。
---
LB_SmartVision/Forms/Pages/ProcessPage/AllProcessesPage.cs | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/LB_SmartVision/Forms/Pages/ProcessPage/AllProcessesPage.cs b/LB_SmartVision/Forms/Pages/ProcessPage/AllProcessesPage.cs
index ebe3011..01ab907 100644
--- a/LB_SmartVision/Forms/Pages/ProcessPage/AllProcessesPage.cs
+++ b/LB_SmartVision/Forms/Pages/ProcessPage/AllProcessesPage.cs
@@ -20,6 +20,7 @@
Name = "AllProcessesPage";
Text = "涓荤晫闈�";
+ //this.Font = new Font("Microsoft YaHei UI", 16F, FontStyle.Regular, GraphicsUnit.Point, 0);
this.BackColor = Color.FromArgb(32, 41, 50);
InitVisionUI();
@@ -30,7 +31,6 @@
public void InitVisionUI()
{
- this.controlsPanel.Dock = DockStyle.Fill;
List<string> keys = dicProcessControls.Keys.ToList();
foreach (var title in keys)
@@ -59,9 +59,7 @@
foreach (var layout in GlobalVar.dicLayout.Values)
{
if (GlobalVar.dicProcesses.ContainsKey(layout.ProcessName))
- {
enableLayout++;
- }
}
int index = 0;
@@ -76,13 +74,12 @@
ProcessControl processControl = dicProcessControls[title];
processControl.Size
= new Size(this.controlsPanel.Size.Width / enableLayout
- , this.controlsPanel.Size.Height-40);
+ , this.controlsPanel.Size.Height);
processControl.Location
= new Point(processControl.Size.Width * index, 0);
- if (GlobalVar.dicProcesses[name].GetImage(GlobalVar.dicLayout[i], out _, out HImage RecordImage))
- {
+
+ if (GlobalVar.dicProcesses[name].GetImage(GlobalVar.dicLayout[i], out _, out HObject RecordImage))
dicProcessControls[title].ShowHoImage(RecordImage);
- }
}
else
{
@@ -97,10 +94,8 @@
dicProcessControls.TryAdd(title, processControl);
this.controlsPanel.Controls.Add(processControl);
- if (GlobalVar.dicProcesses[name].GetImage(GlobalVar.dicLayout[i], out _, out HImage RecordImage))
- {
+ if (GlobalVar.dicProcesses[name].GetImage(GlobalVar.dicLayout[i], out _, out HObject RecordImage))
dicProcessControls[title].ShowHoImage(RecordImage);
- }
}
index++;
}
--
Gitblit v1.9.3