|
|
|
@ -32,6 +32,7 @@ namespace Rs.Controls
|
|
|
|
|
|
|
|
|
|
public partial class RsTray : UserControl
|
|
|
|
|
{
|
|
|
|
|
public string RecipeName { get; set; } = "default";
|
|
|
|
|
private int CurrentSlot { get; set; } = 1;
|
|
|
|
|
|
|
|
|
|
private TrayInfo trayInfo;
|
|
|
|
@ -255,7 +256,7 @@ namespace Rs.Controls
|
|
|
|
|
public void Init()
|
|
|
|
|
{
|
|
|
|
|
trayInfo = new TrayInfo(SortDir, RowNum, ColumnNum, ItemName);
|
|
|
|
|
trayInfo = trayInfo.Init();
|
|
|
|
|
trayInfo = trayInfo.Init(RecipeName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Save()
|
|
|
|
@ -703,7 +704,7 @@ namespace Rs.Controls
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
string dirPath = Path.Combine(GlobalVar.Instance.RecipeDir, ItemName);
|
|
|
|
|
string dirPath = Path.Combine(rsTray.RecipeName, ItemName);
|
|
|
|
|
if (!Directory.Exists(dirPath))
|
|
|
|
|
{
|
|
|
|
|
Directory.CreateDirectory(dirPath);
|
|
|
|
@ -718,9 +719,9 @@ namespace Rs.Controls
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public TrayInfo Init()
|
|
|
|
|
public TrayInfo Init(string recipeName)
|
|
|
|
|
{
|
|
|
|
|
string dirPath = Path.Combine(GlobalVar.Instance.RecipeDir, ItemName);
|
|
|
|
|
string dirPath = Path.Combine(recipeName, ItemName);
|
|
|
|
|
if (!Directory.Exists(dirPath))
|
|
|
|
|
{
|
|
|
|
|
Directory.CreateDirectory(dirPath);
|
|
|
|
|