private void OnPreviewEvent(PrintInfo sender) { printerForm pf = new printerForm(Name, printerForm.PrintMode.Preview, sender.PrintType); if (OnPrintDocument(sender, pf)) { OpenForm(pf, GlobalInfo.globalPref.ModalWindow); } }
protected virtual void AddonPrintDocument(PrintInfo sender, printerForm pf) { if (AddonList != null) { foreach (Addon scr in AddonList) { scr.OnPrintDocument(sender, pf); } } }
private void OnPrintEvent(PrintInfo sender) { printerForm pf = new printerForm(Name, printerForm.PrintMode.Print, sender.PrintType); OnPrintDocument(sender, pf); }
protected virtual bool OnPrintDocument(PrintInfo sender, printerForm pf) { return(true); }