public void SetText(string newText, bool clearModified)
{
bool shouldBeReadOnly = this.scintillaControl1.IsReadOnly;
this.scintillaControl1.IsReadOnly = false;
this.scintillaControl1.SetText(newText);
this.scintillaControl1.ConvertEOLs(EndOfLine.Crlf);
if (clearModified)
{
this.scintillaControl1.SetSavePoint();
this.scintillaControl1.EmptyUndoBuffer();
}
this.scintillaControl1.IsReadOnly = shouldBeReadOnly;
}