Beispiel #1
0
        // defines a firmware file
        private static FirmwareFile File(string hash, long size, string recommendedName, string descr, string additionalInfo = "")
        {
            hash = hash.ToUpperInvariant();

            var ff = new FirmwareFile
            {
                Hash            = hash,
                Size            = size,
                RecommendedName = recommendedName,
                Description     = descr,
                Info            = additionalInfo
            };

            FirmwareFiles.Add(ff);
            FirmwareFilesByHash[hash] = ff;
            return(ff);
        }
Beispiel #2
0
        // defines a firmware file
        private static FirmwareFile File(string hash, long size, string recommendedName, string descr, string additionalInfo = "")
        {
            string hashfix = hash.ToUpperInvariant();

            var ff = new FirmwareFile
            {
                hash            = hashfix,
                size            = size,
                recommendedName = recommendedName,
                descr           = descr,
                info            = additionalInfo
            };

            FirmwareFiles.Add(ff);
            FirmwareFilesByHash[hashfix] = ff;
            return(ff);
        }