alielie
2025-03-26 4cac1b533e133fdc8b3def90a0f998820f51907a
HMI.ParameterManage/TestItem.xaml.cs
@@ -1,14 +1,13 @@
using HMI.Base;
using HMI.Core.Entity;
using HMI.Core.Manager;
using HMI.Core.Util;
using HMI.ParameterManage.Entity;
using HMI.ParameterManage.Util;
using HMI.UI.Util;
using HMI.Util;
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Windows;
@@ -54,14 +53,7 @@
        public static string FileFolder { get; private set; }
        public override void Active()
        {
            if (!isActivated)
            {
                string folder = Path.Combine(ParameterManage.FileFolder, "TestItem");
                PathHelper.InitFolder(folder);
                base.SetBaseFolder(folder);
                FileFolder = folder;
                isActivated = true;
            }
        }
        private void Button_Click(object sender, RoutedEventArgs e)
@@ -305,7 +297,7 @@
            try
            {
                ObservableCollection<ProductData> products =
                ParameterManager.GetProducts<ObservableCollection<ProductData>>()
                ProductManager.GetProducts<ObservableCollection<ProductData>>()
                ?? new ObservableCollection<ProductData>();
                Products = products;
            }