From c4a3f8db90530a727ffab77c3bb5bb7d782792bf Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 25 八月 2025 15:50:27 +0800
Subject: [PATCH] 上传代码;

---
 HMI.MenuManage/Modal/IconSelector.xaml.cs |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/HMI.MenuManage/Modal/IconSelector.xaml.cs b/HMI.MenuManage/Modal/IconSelector.xaml.cs
index 1411ece..f1e5609 100644
--- a/HMI.MenuManage/Modal/IconSelector.xaml.cs
+++ b/HMI.MenuManage/Modal/IconSelector.xaml.cs
@@ -1,22 +1,13 @@
-锘縰sing HMI.Core.Annotation;
-using HMI.Core.Util;
-using HMI.MenuManage.Entity;
-using HMI.UI.DpUtil;
-using Microsoft.Win32;
+锘縰sing HMI.MenuManage.Entity;
 using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
 using Panuon.WPF.UI;
 using System;
 using System.Collections.Generic;
-using System.Collections.ObjectModel;
 using System.ComponentModel;
 using System.Data;
 using System.IO;
 using System.Linq;
 using System.Reflection;
-using System.Windows;
-using System.Windows.Controls;
-using System.Xml.Linq;
 
 namespace HMI.MenuManage
 {
@@ -71,7 +62,7 @@
 
         public bool? Open(string currentValue)
         {
-            list.ItemsSource = icons.Select(i => i.Code).ToList();
+            list.ItemsSource = icons?.Select(i => i.Code).ToList();
             Data = currentValue;
             return this.ShowDialog();
         }

--
Gitblit v1.9.1