123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- using Aitex.Triton160.Common;
- using Aitex.Triton160.UI;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Triton160.UI.ViewModel;
- namespace Aitex.Triton160.UI.ViewModel
- {
- class UiRecipeManager : IUiRecipeManager
- {
- public string LoadRecipe(string chamId, string receipeName)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.LoadRecipe(ModuleNameString.ToEnum(chamId), receipeName);
- }
- public Tuple<string, string> LoadRunTimeRecipeInfo(string chamId)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.LoadRunTimeRecipeInfo(ModuleNameString.ToEnum(chamId));
- }
- public IEnumerable<string> GetRecipes(string chamId, bool includeUsedRecipe)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.GetRecipes(ModuleNameString.ToEnum(chamId), includeUsedRecipe);
- }
- public bool DeleteRecipe(string chamId, string recipeName)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.DeleteRecipe(ModuleNameString.ToEnum(chamId), recipeName);
- }
- public bool SaveAsRecipe(string chamId, string recipeName, string recipeContent)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.SaveAsRecipe(ModuleNameString.ToEnum(chamId), recipeName, recipeContent);
- }
- public bool SaveRecipe(string chamId, string recipeName, string recipeContent)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.SaveRecipe(ModuleNameString.ToEnum(chamId), recipeName, recipeContent);
- }
- public bool MoveRecipeFile(string chamId, string folderName, string tragetFolderName)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.MoveRecipeFile(ModuleNameString.ToEnum(chamId), folderName, tragetFolderName);
- }
- public bool RenameRecipe(string chamId, string oldName, string newName)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.RenameRecipe(ModuleNameString.ToEnum(chamId), oldName, newName);
- }
- public bool CreateFolder(string chamId, string folderName)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.CreateFolder(ModuleNameString.ToEnum(chamId), folderName);
- }
- public bool DeleteFolder(string chamId, string foldName)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.DeleteFolder(ModuleNameString.ToEnum(chamId), foldName);
- }
- public string GetXmlRecipeList(string chamId, bool includingUsedRecipe)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.GetXmlRecipeList(ModuleNameString.ToEnum(chamId), includingUsedRecipe);
- }
- public bool RenameFolder(string chamId, string oldName, string newName)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.RenameFolder(ModuleNameString.ToEnum(chamId), oldName, newName);
- }
- public string GetRecipeFormatXml(string chamId)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.GetRecipeFormatXml(ModuleNameString.ToEnum(chamId));
- }
- public string GetRecipeTemplate(string chamId)
- {
- return Triton160UiSystem.Instance.WCF.Recipe.GetRecipeTemplate(ModuleNameString.ToEnum(chamId));
- }
- }
- }
|