public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _stex = new STEX(FileInfo.OpenRead()); _bitmaps = new List <BitmapInfo> { new StexBitmapInfo { Bitmap = _stex.bmp, Format = (Support.FormatSwitcher)Enum.Parse(typeof(Support.FormatSwitcher), _stex.settings.Format.FormatName) } }; } }
public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _stex = new STEX(FileInfo.OpenRead()); _bitmaps = new List <BitmapInfo> { new BitmapInfo { Bitmap = _stex.bmp } }; } }
public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _stex = new STEX(FileInfo.OpenRead()); _bitmaps = new List <BitmapInfo> { new StexBitmapInfo { Bitmap = _stex.bmp, Format = _stex.settings.Format.FormatName } }; } }
public LoadResult Load(string filename) { LoadResult result = LoadResult.Success; _fileInfo = new FileInfo(filename); if (_fileInfo.Exists) { _stex = new STEX(new FileStream(_fileInfo.FullName, FileMode.Open, FileAccess.Read)); } else { result = LoadResult.FileNotFound; } return(result); }