|
@@ -217,7 +217,7 @@ namespace FurnaceUI.Views.Recipes
|
|
private List<FileNode> _recipeFileList = new List<FileNode>();
|
|
private List<FileNode> _recipeFileList = new List<FileNode>();
|
|
public List<FileNode> RecipeFileList
|
|
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)); }
|
|
set { _recipeFileList = value; this.NotifyOfPropertyChange(nameof(RecipeFileList)); }
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1050,14 +1050,13 @@ namespace FurnaceUI.Views.Recipes
|
|
ProcessTypeFileItem item = ProcessTypeFileList.FirstOrDefault(x => x.ProcessType == types[1]);
|
|
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;
|
|
item.FileListByProcessType = RecipeSequenceTreeBuilder.GetFileNodeParameterList($"{ChamberType[ChamberTypeIndexSelection]}\\{item.ProcessType}");// RecipeSequenceTreeBuilder.BuildFileNode(prefix, selectedFile, selectionIsFolder, recipes)[0].Files;
|
|
FindSelectedFile(item.FileListByProcessType, $"{$"{ChamberType[ChamberTypeIndexSelection]}\\{item.ProcessType}"}\\{newfile}");
|
|
FindSelectedFile(item.FileListByProcessType, $"{$"{ChamberType[ChamberTypeIndexSelection]}\\{item.ProcessType}"}\\{newfile}");
|
|
-
|
|
|
|
|
|
+ TreeSelectChanged(CurrentFileNode);
|
|
item.FileListByProcessType.ForEachDo(a =>
|
|
item.FileListByProcessType.ForEachDo(a =>
|
|
{
|
|
{
|
|
a.IsSelected = false;
|
|
a.IsSelected = false;
|
|
if (a.FullPath == prefix)
|
|
if (a.FullPath == prefix)
|
|
{
|
|
{
|
|
a.IsSelected = true;
|
|
a.IsSelected = true;
|
|
- CurrentFileNode = a;
|
|
|
|
RecipeFileList = a.Files.ToList();
|
|
RecipeFileList = a.Files.ToList();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -1541,6 +1540,7 @@ namespace FurnaceUI.Views.Recipes
|
|
ProcessTypeFileItem item = ProcessTypeFileList.FirstOrDefault(x => x.ProcessType == CurrentProcessType);
|
|
ProcessTypeFileItem item = ProcessTypeFileList.FirstOrDefault(x => x.ProcessType == CurrentProcessType);
|
|
item.FileListByProcessType = RecipeSequenceTreeBuilder.GetFileNodeParameterList($"{ChamberType[ChamberTypeIndexSelection]}\\{item.ProcessType}");// RecipeSequenceTreeBuilder.BuildFileNode(prefix, selectedFile, selectionIsFolder, recipes)[0].Files;
|
|
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}");
|
|
FindSelectedFile(item.FileListByProcessType, $"{$"{ChamberType[ChamberTypeIndexSelection]}\\{item.ProcessType}"}\\{CurrentFileNode.FullPath}");
|
|
|
|
+ TreeSelectChanged(CurrentFileNode);
|
|
|
|
|
|
item.FileListByProcessType.ForEachDo(a =>
|
|
item.FileListByProcessType.ForEachDo(a =>
|
|
{
|
|
{
|
|
@@ -1548,13 +1548,10 @@ namespace FurnaceUI.Views.Recipes
|
|
if (a.FullPath == prefixPath)
|
|
if (a.FullPath == prefixPath)
|
|
{
|
|
{
|
|
a.IsSelected = true;
|
|
a.IsSelected = true;
|
|
- CurrentFileNode = a;
|
|
|
|
RecipeFileList = a.Files.ToList();
|
|
RecipeFileList = a.Files.ToList();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- this.UpdateView();
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void ViewRecipe()
|
|
public void ViewRecipe()
|
|
@@ -2216,6 +2213,7 @@ namespace FurnaceUI.Views.Recipes
|
|
oldName = recipeEditViewModel.CurrentRecipe.Name;
|
|
oldName = recipeEditViewModel.CurrentRecipe.Name;
|
|
oldStepName = recipeEditViewModel.SelectedRecipeStep.Name;
|
|
oldStepName = recipeEditViewModel.SelectedRecipeStep.Name;
|
|
}
|
|
}
|
|
|
|
+
|
|
return bret == true;
|
|
return bret == true;
|
|
}
|
|
}
|
|
|
|
|