public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _tim2 = new TIM2(FileInfo.OpenRead()); _bitmaps = new List <BitmapInfo> { new BitmapInfo { Bitmap = _tim2.bmp } }; } }
public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _tim2 = new TIM2(FileInfo.OpenRead()); _bitmaps = new List <BitmapInfo> { new Tim2BitmapInfo { Bitmap = _tim2.bmp, Format = _tim2.settings.Format.FormatName } }; } }
public LoadResult Load(string filename) { LoadResult result = LoadResult.Success; _fileInfo = new FileInfo(filename); if (_fileInfo.Exists) { _tim2 = new TIM2(_fileInfo.FullName); } else { result = LoadResult.FileNotFound; } return(result); }