Beispiel #1
0
        public void CreateIndEventPDF(string eventName, List <Performance> performances)
        {
            IPrintoutPDFSvc printoutSvc = (IPrintoutPDFSvc)GetService(typeof(IPrintoutPDFSvc).Name);
            bool            didPrint    = printoutSvc.CreateIndEventPDF(eventName, performances);

            if (!didPrint)
            {
            }
            //MessageBox.Show("Printout Failed!");
        }
 public void CreateIndEventPDF(string eventName, List <Performance> performances)
 {
     try
     {
         IPrintoutPDFSvc printoutSvc = (IPrintoutPDFSvc)GetService(typeof(IPrintoutPDFSvc).Name);
         bool            didPrint    = printoutSvc.CreateIndEventPDF(eventName, performances);
         if (!didPrint)
         {
             MessageBox.Show("Printout Failed!");
         }
     }
     catch (Exception e)
     {
         Console.WriteLine("Exception in PrintoutMgr: CreateIndEventPDF: " + e);
         MessageBox.Show("Printout Failed!");
     }
 }