Beispiel #1
0
        public McuCpuIdAndCpuSegmentAgreegation(ReadmeDocument doc, string cpuId, string cpuSegment)
        {
            var cpuid = cpuId.PadLeft(8, '0').ToUpper();

            foreach (McuTableRow row in doc.CpuTableRows)
            {
                if (row[McuTableColumn.CpuSegment] == cpuSegment && row[McuTableColumn.CpuId].PadLeft(8, '0').ToUpper() == cpuid)
                {
                    _entries.Add(row);
                }
            }

            for (var i = 0; i < (int)McuTableColumn.IntelProductSpecs; i++)
            {
                var key = ((McuTableColumn)i).ToString();
                _columnValuesDictionary[key] = this[key];
            }
        }
        public MicrocodeReleaseModel()
        {
            var readmeTemplate = string.Format(@"{0}\README_Template.md", ConfigurationManager.AppSettings["MicrocodeReleaseWorkingDirectory"]);

            _doc = new ReadmeDocument(readmeTemplate);
        }