コード例 #1
0
 public ISOInfo(string name, Dictionary <CultureInfo, string> descs, ISOCat cat, string fn = "",
                params ISOV[] vers)
 {
     Name         = name;
     Descriptions = descs;
     Category     = cat;
     Filename     = fn;
     Versions     = vers.ToList();
     Versions.ForEach(x => x.Parent = this);
     if (!Versions.Any(x => x.Latest) && Versions.Count > 0)
     {
         Versions.Where(t => LatestVersion == t).ToList()[0].Latest = true;
     }
 }
コード例 #2
0
ファイル: ISOInfo.cs プロジェクト: zdimension/SharpBoot
 public ISOInfo(string name, Dictionary<CultureInfo, string> descs, ISOCat cat, string fn = "",
     params ISOV[] vers)
 {
     Name = name;
     Descriptions = descs;
     Category = cat;
     Filename = fn;
     Versions = vers.ToList();
     Versions.ForEach(x => x.Parent = this);
     if (!Versions.Any(x => x.Latest) && Versions.Count > 0)
     {
         Versions.Where(t => LatestVersion == t).ToList()[0].Latest = true;
     }
 }