Пример #1
0
        public void CreateMeetResultsPDF(OverallScore scoreToPrint)
        {
            IPrintoutPDFSvc printoutSvc = (IPrintoutPDFSvc)GetService(typeof(IPrintoutPDFSvc).Name);
            bool            didPrint    = printoutSvc.CreateMeetResultsPDF(scoreToPrint);

            if (!didPrint)
            {
            }
            //MessageBox.Show("Printout Failed!");
        }
Пример #2
0
 public void CreateMeetResultsPDF(OverallScore scoreToPrint)
 {
     try
     {
         IPrintoutPDFSvc printoutSvc = (IPrintoutPDFSvc)GetService(typeof(IPrintoutPDFSvc).Name);
         bool            didPrint    = printoutSvc.CreateMeetResultsPDF(scoreToPrint);
         if (!didPrint)
         {
             MessageBox.Show("Printout Failed!");
         }
     }
     catch (Exception e)
     {
         Console.WriteLine("Exception in PrintoutMgr: CreateMeetResultsPDF: " + e);
         MessageBox.Show("Printout Failed!");
     }
 }