Ejemplo n.º 1
0
        public static Recipe Get(string fileName)
        {
            Recipe Content;
            ConfigTool <Recipe> SysCfg = new ConfigTool <Recipe>();

            Content = SysCfg.ReadFile("recipe/" + fileName + ".json");
            return(Content);
        }
Ejemplo n.º 2
0
 public static SystemConfig Get()
 {
     if (Content == null)
     {
         ConfigTool <SystemConfig> SysCfg = new ConfigTool <SystemConfig>();
         Content = SysCfg.ReadFile("config/SystemConfig.json");
     }
     return(Content);
 }