Esempio n. 1
0
 /// <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();
 }
Esempio n. 2
0
 /// <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);
     }
 }
Esempio n. 3
0
 /// <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);
     }
 }
Esempio n. 4
0
 private void fontSelectControl_FontStyleChanged(object sender, FontChangedEventArgs e)
 {
     OnFontStyleChanged(e);
 }