alielie
2025-05-12 7bf89fd93bc487e8445d6d85bb527251b7371a04
Plugin.TestResult/ViewControl.xaml.cs
@@ -7,6 +7,7 @@
using log4net;
using NationalInstruments.TestStand.Interop.API;
using NationalInstruments.TestStand.Interop.UI.Ax;
using Plugin.TestResult;
using Plugin.TestResult_WPF.Model;
using Plugin.TestResult_WPF.Util;
using System;
@@ -76,6 +77,7 @@
        {
            get => testResultView;
        }
        public static string SannerIniFile { get; private set; }
        public override void InitFinish()
        {
@@ -84,6 +86,13 @@
            testResultView.SetCountIniPath(path);
            testResultView.InitMainGrid();
            testResultView.InitTestStandEngine();
            path = Path.Combine(BaseFolder, "Scanner.ini");
            if (!File.Exists(path))
            {
                File.Create(path).Close();
            }
            SannerIniFile = path;
            LoadProduct();
        }
@@ -331,6 +340,12 @@
            testResultView.ClearNumber();
        }
        private void ScannerSetting_Click(object sender, RoutedEventArgs e)
        {
            ScannerSetting setting = new ScannerSetting() {
                Owner = Window.GetWindow(this)
            };
            setting.Open(false,"Config");
        }
    }
}