public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _ctpk = new CTPK(File.OpenRead(FileInfo.FullName)); _bitmaps = _ctpk.bmps.Select(o => new CtpkBitmapInfo { Bitmap = o.bmp, Format = o.format }).ToList <BitmapInfo>(); } }
public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _ctpk = new CTPK(FileInfo.OpenRead()); _bitmaps = _ctpk.bmps.Select((o, i) => new CtpkBitmapInfo { Bitmap = o, Format = _ctpk._settings[i].Format.FormatName }).ToList <BitmapInfo>(); } }