private void OnModifyAttemptOnReadOnly(object sender, EventArgs e)
{
if (AttemptModify != null)
{
bool allowModify = true;
AttemptModify(ref allowModify);
if (allowModify)
{
this.scintillaControl1.IsReadOnly = false;
}
}
else
{
this.scintillaControl1.IsReadOnly = false;
}
}