public void Save(string filename = "") { if (filename.Trim() != string.Empty) { FileInfo = new FileInfo(filename); } _stex.bmp = _bitmaps[0].Bitmap; _stex.Save(FileInfo.FullName, _stex.bmp); }
public SaveResult Save(string filename = "") { SaveResult result = SaveResult.Success; if (filename.Trim() != string.Empty) { _fileInfo = new FileInfo(filename); } try { _stex.Save(_fileInfo.FullName, _stex.bmp); } catch (Exception) { result = SaveResult.Failure; } return(result); }