| | |
| | | using LB_VisionProcesses; |
| | | using LB_VisionProcesses.Forms; |
| | | using System; |
| | | using System.Collections.Concurrent; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | |
| | | layout.Title += "(副本)"; |
| | | } |
| | | } |
| | | if (!string.IsNullOrEmpty(layout.Title) && layout.Title.Equals("布局")) |
| | | { |
| | | layout.Title += "(副本)"; |
| | | } |
| | | GlobalVar.dicLayout.TryAdd(GlobalVar.dicLayout.Count, layout); |
| | | this.Invalidate(); |
| | | } |
| | |
| | | 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(); |
| | | } |
| | | |