alielie
2025-03-13 a3ba25607612818c28d421bfa8eb2f92339d71ac
Plugin.TestResult/TestResultView.xaml.cs
@@ -1,4 +1,6 @@
using NationalInstruments.TestStand.Interop.API;
using HMI.Core.Util;
using HMI.UI.Util;
using NationalInstruments.TestStand.Interop.API;
using NationalInstruments.TestStand.Interop.UI.Ax;
using NationalInstruments.TestStand.Utility;
using Plugin.TestResult_WPF.Constant;
@@ -164,7 +166,8 @@
            }
            catch (Exception ex)
            {
                throw new Exception("初始化TS引擎失败:" + ex.Message);
                ViewControl.Logger.Error("InitTestStandEngine Failed.", ex);
                throw new Exception($"{this.lang("Ts.InitTestStandEngineFail")}: {ex.Message}");
            }
        }
@@ -179,7 +182,8 @@
            }
            catch (Exception ex)
            {
                throw new Exception("启动测试序列失败:" + ex.Message);
                ViewControl.Logger.Error("StartTestSequence Failed.", ex);
                throw new Exception($"{this.lang("Ts.StartTestSequenceFailed")}: {ex.Message}");
            }
        }
@@ -198,7 +202,8 @@
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
                ViewControl.Logger.Error("StopTest Failed.", ex);
                throw new Exception($"{this.lang("Ts.StopTestSequenceFailed")}: {ex.Message}");
            }
        }
@@ -216,7 +221,8 @@
            }
            catch (Exception ex)
            {
                MessageBox.Show("释放测试序列失败:" + ex.Message);
                MsgBoxHelper.Error(Window.GetWindow(this),
                    $"{this.lang("Ts.ReleaseSequenceFileFail")}: {ex.Message}");
            }
        }
@@ -360,7 +366,7 @@
            }
            catch (Exception ex)
            {
                ViewControl.Logger.Warn("TestStand Event Error.", ex);
            }
        }