Beispiel #1
0
        protected IEnumerable <T> GetItems(string path, string productName)
        {
            var categoryName = ProductProvider.GetCategoryName(productName);
            var bootFileName = BootProvider.GetFileName(categoryName);

            using (var stream = File.OpenRead(path))
            {
                var fileName = Path.GetFileName(path);
                return(GetItems(stream, fileName, productName, bootFileName));
            }
        }
        public virtual TCamera GetCamera(uint modelId, string platform, ListPlatformData list, TreePlatformData tree, string productName)
        {
            var categoryName = ProductProvider.GetCategoryName(productName);

            return(new TCamera
            {
                Models = new TModel[0],
                Encoding = GetEncoding(platform, tree.Encoding, categoryName),
                Boot = GetBoot(modelId, productName),
                Card = GetCard(modelId, tree.Card, productName),
            });
        }