保存复制的配方
This commit is contained in:
parent
df59c9fb02
commit
9a91cdec0a
@ -951,6 +951,16 @@ namespace PLCSharp.Models
|
||||
}
|
||||
}
|
||||
|
||||
_DatasContext.Recipes.Add(newRecipe);
|
||||
try
|
||||
{
|
||||
_DatasContext.Save();
|
||||
SendInfoDialog($"配方 [{newRecipe.Name}] 复制成功");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
SendInfoDialog($"复制失败: {ex.Message}");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user