コード例 #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);
        }
コード例 #2
0
ファイル: TmxAdapter.cs プロジェクト: getov/Kuriimu
        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);
        }