private bool SaveTextFile(ITextFile textFile) { bool isModified = false; try { if (textFile.Save()) { this.log.Info(textFile.FileName, "Saved successfully."); isModified = true; } else { this.log.Debug(textFile.FileName, "Has not been modified."); } } catch (SystemException exc) { this.log.Error(textFile.FileName, "Error: " + exc.Message); if (System.Diagnostics.Debugger.IsAttached) { throw; } } return(isModified); }