|
@@ -56,8 +56,13 @@ namespace FurnaceUI.Views.Editors
|
|
|
}
|
|
|
|
|
|
private RecipeProvider _recipeProvider = new RecipeProvider();
|
|
|
+ private RecipeTable _SelectedTable = new RecipeTable();
|
|
|
|
|
|
-
|
|
|
+ public RecipeTable SelectedTable
|
|
|
+ {
|
|
|
+ get { return _SelectedTable; }
|
|
|
+ set { _SelectedTable = value; this.NotifyOfPropertyChange(nameof(SelectedTable)); }
|
|
|
+ }
|
|
|
public string ResultParameterStr { get; set; }
|
|
|
private RecipeDataBase _CurrentRecipe = new RecipeDataBase();
|
|
|
|
|
@@ -100,6 +105,7 @@ namespace FurnaceUI.Views.Editors
|
|
|
var one = Steps.Where(a => a.StepNo.Equals(int.Parse(stepNo))).FirstOrDefault();
|
|
|
one.IsChecked = true;
|
|
|
SelectItemName = one.Name;
|
|
|
+ SelectedTable = CurrentRecipe.Tables[one.StepNo - 1];
|
|
|
|
|
|
}
|
|
|
else
|
|
@@ -110,6 +116,7 @@ namespace FurnaceUI.Views.Editors
|
|
|
first.IsChecked = true;
|
|
|
SelectItemName = first.Name;
|
|
|
ResultParameterStr = $"{first.StepNo}:{first.Name}";
|
|
|
+ SelectedTable = CurrentRecipe.Tables[first.StepNo-1];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -124,6 +131,7 @@ namespace FurnaceUI.Views.Editors
|
|
|
SelectItemName = step1.Name;
|
|
|
SelectItemTable = new ObservableCollection<ParameterTable>();
|
|
|
ResultParameterStr = $"{step1.StepNo}:{step1.Name}";
|
|
|
+ SelectedTable = CurrentRecipe.Tables[SelectedStep.StepNo-1];
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -137,6 +145,7 @@ namespace FurnaceUI.Views.Editors
|
|
|
SelectItemName = step1.Name;
|
|
|
SelectItemTable = new ObservableCollection<ParameterTable>();
|
|
|
ResultParameterStr = $"{step1.StepNo}:{step1.Name}";
|
|
|
+ SelectedTable = CurrentRecipe.Tables[SelectedStep.StepNo-1];
|
|
|
}
|
|
|
}
|
|
|
|