| | |
| | | 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; |
| | |
| | | { |
| | | get => testResultView; |
| | | } |
| | | public static string SannerIniFile { get; private set; } |
| | | |
| | | public override void InitFinish() |
| | | { |
| | |
| | | testResultView.SetCountIniPath(path); |
| | | testResultView.InitMainGrid(); |
| | | testResultView.InitTestStandEngine(); |
| | | |
| | | path = Path.Combine(BaseFolder, "Scanner.ini"); |
| | | if (!File.Exists(path)) |
| | | { |
| | | File.Create(path).Close(); |
| | | } |
| | | SannerIniFile = path; |
| | | LoadProduct(); |
| | | } |
| | | |
| | |
| | | testResultView.ClearNumber(); |
| | | } |
| | | |
| | | |
| | | private void ScannerSetting_Click(object sender, RoutedEventArgs e) |
| | | { |
| | | Plugin.TestResult.ScannerSetting setting = new Plugin.TestResult.ScannerSetting() { |
| | | Owner = Window.GetWindow(this) |
| | | }; |
| | | setting.Open(false,"Config"); |
| | | } |
| | | } |
| | | } |