protected virtual void OnTextSet (EventArgs e) { EventHandler handler = this.TextSet; if (handler != null) handler (this, e); } public event EventHandler TextSet;