Преглед на файлове

修复Suquence打开修改界面报空bug

lixiang преди 7 месеца
родител
ревизия
1c62310360
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      Venus/Venus_MainPages/Views/NewRecipeSequenceSelectView.xaml.cs

+ 4 - 0
Venus/Venus_MainPages/Views/NewRecipeSequenceSelectView.xaml.cs

@@ -107,6 +107,10 @@ namespace Venus_MainPages.Views
         {
 
             var dictionary = SerializeHelper.Instance.StringToDictionary(value);
+            if (dictionary.Count == 0)
+            {
+                return;
+            }
             foreach (var item in PreLotTreeView.Items)
             {
                 var tvi = (TreeViewItem)PreLotTreeView.ItemContainerGenerator.ContainerFromItem(item);