protected virtual void OnModified(EventArgs e) { if (!IsModified) { IsModified = true; var ev = Modified; if (ev != null) ev(this, e); } }