public void Save(string filename = "") { if (filename.Trim() != string.Empty) { FileInfo = new FileInfo(filename); } _tmx.bmp = _bitmaps[0].Bitmap; _tmx.Save(FileInfo.FullName); }
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); }