duheng
2024-10-24 5fcc843704ca90c742b578aa5898acf0097f753b
WinFrmUI/HStation.WinFrmUI.PhartRelation.Core/99-common/PumpParallelChartDlg.cs
@@ -14,7 +14,7 @@
            {
                var list = this.pumpParallelInfoCtrl1.GetRunList();
                SetParallel(list);
            };
            };
            this.pumpParallelInfoCtrl1.SetInfoEvent += (id, name, color) =>
            {
                this.pumpSerialParallelChart.SetInfo(id, name, color);
@@ -46,7 +46,7 @@
                var list = this.pumpParallelInfoCtrl1.GetRunList();
                SetParallel(list);
            };
            this.pumpParallelInfoCtrl1.SaveEvent +=   () =>
            this.pumpParallelInfoCtrl1.SaveEvent += () =>
            {
                var run_list = this.pumpParallelInfoCtrl1.GetRunList();
                var list = new List<XhsSingleResultViewModel>();
@@ -64,12 +64,16 @@
                        list.Add(vm);
                    }
                }
                this.ReloadDataEvent?.Invoke(list);
                var bol = this.ReloadDataEvent?.Invoke(list);
                if (bol.HasValue && bol.Value)
                {
                    this.Close();
                }
            };
        }
        private string _parallel_id = "parallel";  
        public event Func<List<XhsSingleResultViewModel>, Task<bool>> ReloadDataEvent;
        public event Func<List<XhsSingleResultViewModel>, bool> ReloadDataEvent;
        /// <summary>