保存复制的配方

This commit is contained in:
tfarcraw 2026-07-21 12:18:53 +08:00
parent df59c9fb02
commit 9a91cdec0a

View File

@ -951,6 +951,16 @@ namespace PLCSharp.Models
}
}
_DatasContext.Recipes.Add(newRecipe);
try
{
_DatasContext.Save();
SendInfoDialog($"配方 [{newRecipe.Name}] 复制成功");
}
catch (Exception ex)
{
SendInfoDialog($"复制失败: {ex.Message}");
}
}
#endregion
}