public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _aif = new AIF(FileInfo.OpenRead()); _bitmaps = _aif.bmps.Select(o => new BitmapInfo { Bitmap = o }).ToList(); } }
public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _aif = new AIF(FileInfo.OpenRead()); var _bmpList = _aif.bmps.Select(o => new AIFBitmapInfo { Bitmap = o, Format = _aif.settings.Format.FormatName }).ToList(); _bitmaps = new List <BitmapInfo>(); _bitmaps.AddRange(_bmpList); } }