IUiRecipeManager.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Triton160.UI.ViewModel
  6. {
  7. interface IUiRecipeManager
  8. {
  9. string LoadRecipe(string chamId, string receipeName);
  10. Tuple<string, string> LoadRunTimeRecipeInfo(string chamId);
  11. IEnumerable<string> GetRecipes(string chamId, bool includeUsedRecipe);
  12. bool DeleteRecipe(string chamId, string recipeName);
  13. bool SaveAsRecipe(string chamId, string recipeName, string recipeContent);
  14. bool SaveRecipe(string chamId, string recipeName, string recipeContent);
  15. bool MoveRecipeFile(string chamId, string folderName, string tragetFolderName);
  16. bool RenameRecipe(string chamId, string oldName, string newName);
  17. bool CreateFolder(string chamId, string folderName);
  18. bool DeleteFolder(string chamId, string foldName);
  19. string GetXmlRecipeList(string chamId, bool includingUsedRecipe);
  20. bool RenameFolder(string chamId, string oldName, string newName);
  21. string GetRecipeFormatXml(string chamId);
  22. string GetRecipeTemplate(string chamId);
  23. }
  24. }