轮胎外观检测添加思谋语义分割模型检测工具
C3204
7 天以前 8826196fc78ceb9c327d3abf7f2f2cf06dabb5df
LB_SmartVision/Forms/Pages/SettingPage/LayoutPage.cs
@@ -1,6 +1,7 @@
using LB_VisionProcesses;
using LB_VisionProcesses.Forms;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -58,6 +59,10 @@
                    layout.Title += "(副本)";
                }
            }
            if (!string.IsNullOrEmpty(layout.Title) && layout.Title.Equals("布局"))
            {
                layout.Title += "(副本)";
            }
            GlobalVar.dicLayout.TryAdd(GlobalVar.dicLayout.Count, layout);
            this.Invalidate();
        }
@@ -73,6 +78,15 @@
                    GlobalVar.dicLayout.TryRemove(item.Key, out _);
                }
            }
            int i = 0;
            ConcurrentDictionary<int, Layout> dicLayoutTemp = new ConcurrentDictionary<int, Layout>();
            foreach (var control in GlobalVar.dicLayout)
            {
                dicLayoutTemp.TryAdd(i, control.Value);
                i++;
            }
            GlobalVar.dicLayout.Clear();
            GlobalVar.dicLayout= dicLayoutTemp;
            this.Invalidate();
        }