Ejemplo n.º 1
0
        public void Save(string filename = "")
        {
            if (filename.Trim() != string.Empty)
            {
                FileInfo = new FileInfo(filename);
            }

            _tmx.bmp = _bitmaps[0].Bitmap;
            _tmx.Save(FileInfo.FullName);
        }
Ejemplo n.º 2
0
        public SaveResult Save(string filename = "")
        {
            SaveResult result = SaveResult.Success;

            if (filename.Trim() != string.Empty)
            {
                _fileInfo = new FileInfo(filename);
            }

            try
            {
                _tmx.Save(_fileInfo.FullName);
            }
            catch (Exception)
            {
                result = SaveResult.Failure;
            }

            return(result);
        }