alielie
2025-03-18 a061384ba628a09bf4df91f50321ab22c03129aa
Plugin.TsExecution/TsExecution.xaml.cs
@@ -238,8 +238,6 @@
        private void RefershUI()
        {
            if (this.tsSockets.Count == 0)
            {
                panel.Children.Clear();
                //重新生成子面板
                for (int i = 0; i < this.socketNum; i++)
@@ -248,6 +246,13 @@
                    panel.Children.Add(control);
                    tsSockets.Add(control);
                }
            if (tsSockets.Count == 1)
            {
                panel.Columns = 1;
            }
            else
            {
                panel.Columns = 2;
            }
        }
@@ -500,9 +505,10 @@
        /// <param name="e"></param>
        private void AxApplicationMgr_UIMessageEvent(object sender, _ApplicationMgrEvents_UIMessageEventEvent e)
        {
            try
            {
            int EventCase = Convert.ToInt32(e.uiMsg.Event);
            int Index = Convert.ToInt16(e.uiMsg.NumericData);//SocketIndex
            switch (EventCase)
            {
                case 10001://传递SocketContext
@@ -544,7 +550,7 @@
                    break;
                case 10009:
                    // reset the value of controls units failed/pass rate
                        //
                    break;
                case 10010:
@@ -596,6 +602,11 @@
                    break;
            }
        }
            catch (Exception ex)
            {
                log.Warn("Ts Event Error.", ex);
            }
        }
        private void UpdateTestCounter()
        {