/// <summary> /// Occurs when the control is resized. /// </summary> /// <param name="e"></param> protected virtual void OnResize(ControlEventArgs e) { EventHandler<ControlEventArgs> handler = Resized; if (handler != null) { handler(this, e); } }
/// <summary> /// Occurs when the control's text changes. /// </summary> /// <param name="e"></param> protected virtual void OnTextChange(ControlEventArgs e) { EventHandler<ControlEventArgs> handler = TextChanged; if (handler != null) { handler(this, e); } }
/// <summary> /// Occurs when a mouse button is depressed and released. /// </summary> /// <param name="e"></param> protected virtual void OnClick(ControlEventArgs e) { e.SourceControl = this; EventHandler<ControlEventArgs> handler = Clicked; if (handler != null) { handler(this, e); } //TODO: workout click logic. }