|
@@ -196,7 +196,7 @@ namespace FurnaceUI.Views.Recipes
|
|
|
private List<FileNode> _recipeFileList = new List<FileNode>();
|
|
|
public List<FileNode> RecipeFileList
|
|
|
{
|
|
|
- get { return _recipeFileList != null ? _recipeFileList.OrderByDescending(a => a.ReviseTime).ToList() : _recipeFileList; }
|
|
|
+ get { return _recipeFileList; }
|
|
|
set { _recipeFileList = value; this.NotifyOfPropertyChange(nameof(RecipeFileList)); }
|
|
|
}
|
|
|
|
|
@@ -991,14 +991,13 @@ namespace FurnaceUI.Views.Recipes
|
|
|
ProcessTypeFileItem item = ProcessTypeFileList.FirstOrDefault(x => x.ProcessType == types[1]);
|
|
|
item.FileListByProcessType = RecipeSequenceTreeBuilder.GetFileNodeParameterList($"{ChamberType[ChamberTypeIndexSelection]}\\{item.ProcessType}");// RecipeSequenceTreeBuilder.BuildFileNode(prefix, selectedFile, selectionIsFolder, recipes)[0].Files;
|
|
|
FindSelectedFile(item.FileListByProcessType, $"{$"{ChamberType[ChamberTypeIndexSelection]}\\{item.ProcessType}"}\\{newfile}");
|
|
|
-
|
|
|
+ TreeSelectChanged(CurrentFileNode);
|
|
|
item.FileListByProcessType.ForEachDo(a =>
|
|
|
{
|
|
|
a.IsSelected = false;
|
|
|
if (a.FullPath == prefix)
|
|
|
{
|
|
|
a.IsSelected = true;
|
|
|
- CurrentFileNode = a;
|
|
|
RecipeFileList = a.Files.ToList();
|
|
|
return;
|
|
|
}
|
|
@@ -1437,8 +1436,22 @@ namespace FurnaceUI.Views.Recipes
|
|
|
{
|
|
|
UIGlobalVariable.Instance.ProcessModifiedRecipe[CurrentFileNode.FullPath] = $"Edit {DateTime.Now}";
|
|
|
this.editMode = EditMode.Normal;
|
|
|
- ReloadRecipeFileList(CurrentChamberType, CurrentProcessType, CurrentFileNode.FullPath, false);
|
|
|
- this.UpdateView();
|
|
|
+ var prefixPath = GetPrefix(CurrentFileNode.PrefixPath, CurrentFileNode);
|
|
|
+ ProcessTypeFileItem item = ProcessTypeFileList.FirstOrDefault(x => x.ProcessType == CurrentProcessType);
|
|
|
+ item.FileListByProcessType = RecipeSequenceTreeBuilder.GetFileNodeParameterList($"{ChamberType[ChamberTypeIndexSelection]}\\{item.ProcessType}");// RecipeSequenceTreeBuilder.BuildFileNode(prefix, selectedFile, selectionIsFolder, recipes)[0].Files;
|
|
|
+ FindSelectedFile(item.FileListByProcessType, $"{$"{ChamberType[ChamberTypeIndexSelection]}\\{item.ProcessType}"}\\{CurrentFileNode.FullPath}");
|
|
|
+ TreeSelectChanged(CurrentFileNode);
|
|
|
+
|
|
|
+ item.FileListByProcessType.ForEachDo(a =>
|
|
|
+ {
|
|
|
+ a.IsSelected = false;
|
|
|
+ if (a.FullPath == prefixPath)
|
|
|
+ {
|
|
|
+ a.IsSelected = true;
|
|
|
+ RecipeFileList = a.Files.ToList();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
public void ViewRecipe()
|