示例#1
0
        public void Load(string filename)
        {
            FileInfo = new FileInfo(filename);

            if (FileInfo.Exists)
            {
                _tm2 = new TM2(FileInfo.OpenRead());

                _bitmaps = new List <BitmapInfo> {
                    new BitmapInfo {
                        Bitmap = _tm2.bmp
                    }
                };
            }
        }
示例#2
0
        public LoadResult Load(string filename)
        {
            LoadResult result = LoadResult.Success;

            _fileInfo = new FileInfo(filename);

            if (_fileInfo.Exists)
            {
                _tm2 = new TM2(new FileStream(_fileInfo.FullName, FileMode.Open, FileAccess.Read));
            }
            else
            {
                result = LoadResult.FileNotFound;
            }

            return(result);
        }