Exemple #1
0
 private void FontProp_Click(object sender, EventArgs e)
 {
     if (sender == btnBold)
     {
         ActiveChild.SetFontStyle(FontStyle.Bold);
     }
     else if (sender == btnItalic)
     {
         ActiveChild.SetFontStyle(FontStyle.Italic);
     }
     else if (sender == btnUnderLined)
     {
         ActiveChild.SetFontStyle(FontStyle.Underline);
     }
     else if (sender == btnStrikeLined)
     {
         ActiveChild.SetFontStyle(FontStyle.Strikeout);
     }
     else if (sender == btnFondSizeIncrease)
     {
         ShowFontSize(ActiveChild.SetFontSize(true).ToString());
     }
     else if (sender == btnFindSizeDecrease)
     {
         ShowFontSize(ActiveChild.SetFontSize(false).ToString());
     }
     else
     {
         throw new NotImplementedException();
     }
 }