Пример #1
0
        public void Load(string filename)
        {
            FileInfo = new FileInfo(filename);

            if (FileInfo.Exists)
            {
                _xpck = new XPCK(FileInfo.FullName);
            }
        }
Пример #2
0
        public LoadResult Load(string filename)
        {
            LoadResult result = LoadResult.Success;

            _fileInfo = new FileInfo(filename);

            if (_fileInfo.Exists)
            {
                _xpck = new XPCK(_fileInfo.FullName);
            }
            else
            {
                result = LoadResult.FileNotFound;
            }

            return(result);
        }