Ejemplo n.º 1
0
        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)
                    }
                };
            }
        }
Ejemplo n.º 2
0
        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
                    }
                };
            }
        }
Ejemplo n.º 3
0
        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
                    }
                };
            }
        }
Ejemplo n.º 4
0
        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);
        }