コード例 #1
0
        private void OnPreviewEvent(PrintInfo sender)
        {
            printerForm pf = new printerForm(Name, printerForm.PrintMode.Preview, sender.PrintType);

            if (OnPrintDocument(sender, pf))
            {
                OpenForm(pf, GlobalInfo.globalPref.ModalWindow);
            }
        }
コード例 #2
0
 protected virtual void AddonPrintDocument(PrintInfo sender, printerForm pf)
 {
     if (AddonList != null)
     {
         foreach (Addon scr in AddonList)
         {
             scr.OnPrintDocument(sender, pf);
         }
     }
 }
コード例 #3
0
        private void OnPrintEvent(PrintInfo sender)
        {
            printerForm pf = new printerForm(Name, printerForm.PrintMode.Print, sender.PrintType);

            OnPrintDocument(sender, pf);
        }
コード例 #4
0
 protected virtual bool OnPrintDocument(PrintInfo sender, printerForm pf)
 {
     return(true);
 }