From 90a9062ca68bb97195ed24b3879834ed978b517c Mon Sep 17 00:00:00 2001
From: HCL <1625932291@qq.com>
Date: Thu, 15 Jun 2023 10:09:50 +0800
Subject: [PATCH] =?UTF-8?q?1.Sequence=E7=95=8C=E9=9D=A2=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E5=88=B7=E6=96=B0=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Editors/Sequence/SequenceView.xaml | 25 ++++++++++++++-----
.../Editors/Sequence/SequenceViewModel.cs | 23 +++++++++++++++++
2 files changed, 42 insertions(+), 6 deletions(-)
diff --git a/FrameworkLocal/UIClient/CenterViews/Editors/Sequence/SequenceView.xaml b/FrameworkLocal/UIClient/CenterViews/Editors/Sequence/SequenceView.xaml
index 1d7a828..a97d483 100644
--- a/FrameworkLocal/UIClient/CenterViews/Editors/Sequence/SequenceView.xaml
+++ b/FrameworkLocal/UIClient/CenterViews/Editors/Sequence/SequenceView.xaml
@@ -4,11 +4,11 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:dgExtension="clr-namespace:ExtendedGrid.Microsoft.Windows.Controls"
xmlns:editors="clr-namespace:MECF.Framework.UI.Client.CenterViews.Editors"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:micro="clr-namespace:Caliburn.Micro"
- xmlns:dgExtension="clr-namespace:ExtendedGrid.Microsoft.Windows.Controls"
d:DesignHeight="450"
d:DesignWidth="1900"
mc:Ignorable="d">
@@ -351,6 +351,7 @@
+
@@ -386,7 +387,7 @@
+
+
RefreshSequence());
+ return _RefreshCommand;
+ }
+ }
+
public void DeleteSequence()
{
if (CurrentFileNode.IsFile)
@@ -557,6 +569,17 @@ namespace MECF.Framework.UI.Client.CenterViews.Editors.Sequence
}
}
+ public void RefreshSequence()
+ {
+ var names = provider.GetSequences();
+ Files = new ObservableCollection(RecipeSequenceTreeBuilder.GetFiles("", names));
+ CurrentFileNode = Files[0];
+
+ SelectDefault(CurrentFileNode);
+
+ Refresh();
+ }
+
public void ReloadSequence()
{
if (editMode == EditMode.Normal || editMode == EditMode.Edit)