예제 #1
0
        public void Load(string filename)
        {
            FileInfo = new FileInfo(filename);

            if (FileInfo.Exists)
            {
                _ctxb = new CTXB(FileInfo.OpenRead());

                _bitmaps = _ctxb.bmps.Select(o => new BitmapInfo {
                    Bitmap = o
                }).ToList();
            }
        }
예제 #2
0
        public void Load(string filename)
        {
            FileInfo = new FileInfo(filename);

            if (FileInfo.Exists)
            {
                _ctxb = new CTXB(FileInfo.OpenRead());

                var _bmpList = _ctxb.bmps.Select((o, i) => new CTXBBitmapInfo {
                    Bitmap = o, Format = _ctxb.settingsList[i].Format.FormatName
                }).ToList();
                _bitmaps = new List <BitmapInfo>();
                _bitmaps.AddRange(_bmpList);
            }
        }
예제 #3
0
        public LoadResult Load(string filename)
        {
            LoadResult result = LoadResult.Success;

            _fileInfo = new FileInfo(filename);

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

            return(result);
        }