/// <summary> /// Eventhandler. Updates the line sample with the new pen. /// </summary> /// <param name="sender">message sender</param> /// <param name="e">Pen change event arguments that hold new pen</param> public void ThisFontChanged(object sender, FontChangedEventArgs e) { this.Font = e.Font; this.FontColor = e.FontColor; this.FontAlignment = e.FontAlignment; OnFontStyleChanged(e); Invalidate(); }
/// <summary> /// The PenStyle has been modified, notify the callback host if any /// </summary> private void OnFontStyleChanged(FontChangedEventArgs e) { if (FontStyleChanged != null) { // Invokes the delegates. FontStyleChanged(this, e); } }
/// <summary> /// The protected OnFontStyleChanged method raises the progress event by invoking /// the delegates /// </summary> /// <param name="e">FontChanged event arguments</param> protected virtual void OnFontStyleChanged(FontChangedEventArgs e) { if (FontStyleChanged != null) { // Invokes the delegates. FontStyleChanged(this, e); } }
private void fontSelectControl_FontStyleChanged(object sender, FontChangedEventArgs e) { OnFontStyleChanged(e); }