public static void Print(this PictureBox pictureBox, IControlPrinter <PictureBox> controlPrinter)
 {
     controlPrinter.TargetControl = pictureBox;
     controlPrinter.Print();
 }
 /// <summary>
 /// Print the control, using a custom IControlPrinter instance.
 /// </summary>
 public static void Print(this RichTextBox richTextBox, IControlPrinter<RichTextBox> controlPrinter)
 {
     controlPrinter.TargetControl = richTextBox;
     controlPrinter.Print();
 }
 public static void Print(this RichTextBox richTextBox, IControlPrinter <RichTextBox> controlPrinter)
 {
     controlPrinter.TargetControl = richTextBox;
     controlPrinter.Print();
 }
 public static void Print(this PictureBox pictureBox, IControlPrinter<PictureBox> controlPrinter)
 {
     controlPrinter.TargetControl = pictureBox;
     controlPrinter.Print();
 }
Example #5
0
 public void BindEndPrintEvent <T>(IControlPrinter <T> controlPrinter)
 {
     PrintDocument.EndPrint += controlPrinter.PrintDocument_EndPrint;
 }
Example #6
0
 public void BindPrintPageEvent <T>(IControlPrinter <T> controlPrinter)
 {
     PrintDocument.PrintPage += controlPrinter.PrintDocument_PrintPage;
 }
Example #7
0
 public void BindBeginPrintEvent <T>(IControlPrinter <T> controlPrinter)
 {
     PrintDocument.BeginPrint += controlPrinter.PrintDocument_BeginPrint;
 }