Example #1
0
 private void chainInit()
 {
     font = new FontRTB(true, false, false);
     boldChangeHandler              = new BoldChangeHandler();
     italicsChangeHandler           = new ItalicsChangeHandler();
     underlineChangeHandler         = new UnderlineChangeHandler();
     boldChangeHandler.Successor    = italicsChangeHandler;
     italicsChangeHandler.Successor = underlineChangeHandler;
 }
Example #2
0
 public override void Handle(FontRTB font)
 {
     if (font.UnderlineChange)
     {
         font.tFont = new Font(font.tFont.FontFamily.Name, font.tFont.Size, FontStyle.Underline);
     }
     else if (Successor != null)
     {
         Successor.Handle(font);
     }
 }
Example #3
0
 public abstract void Handle(FontRTB font);
Example #4
0
 public void handleWorker(bool bc, bool ic, bool uc)
 {
     font = new FontRTB(bc, ic, uc);
     boldChangeHandler.Handle(font);
 }