public static SavedApplicationVM FromVM(ApplicationVM vm)
 {
     return(new SavedApplicationVM
     {
         Scripts = vm.Scripts.Select(n => SavedScriptInfo.FromScriptInfo(n))
     });
 }
 public static ApplicationVM MakeVM(SavedApplicationVM savedVM)
 {
     return(new ApplicationVM
     {
         Scripts = savedVM.Scripts.Select(n => SavedScriptInfo.MakeScriptInfo(n))
     });
 }
示例#3
0
 public static ScriptInfo MakeScriptInfo(SavedScriptInfo savedScript)
 {
     return(new ScriptInfo
     {
         Name = savedScript.Name,
         Path = savedScript.Path,
         Arguments = savedScript.Arguments,
         Host = savedScript.Host,
         LogOutput = savedScript.LogOutput,
         Icon = savedScript.Icon,
         Shortcut = savedScript.Shortcut,
         Color = savedScript.Color,
     });
 }