Пример #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 CreateTeamPerfPDF(string teamAbbr, Meet meetToPrint)
        {
            IPrintoutPDFSvc printoutSvc = (IPrintoutPDFSvc)GetService(typeof(IPrintoutPDFSvc).Name);
            bool            didPrint    = printoutSvc.CreateTeamPerfPDF(teamAbbr, meetToPrint);

            if (!didPrint)
            {
            }
            //MessageBox.Show("Printout Failed!");
        }
Пример #3
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 TestServiceFactoryPrintoutPDFSvc()
        {
            Console.WriteLine("Inside " + GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name);

            ServiceFactory  myServiceFactory   = ServiceFactory.GetInstance();
            IPrintoutPDFSvc printoutPDFService = (IPrintoutPDFSvc)myServiceFactory.GetService(typeof(IPrintoutPDFSvc).Name);

            Console.WriteLine("printoutPDFService type: " + printoutPDFService.GetType());

            Assert.IsInstanceOf <PrintoutPDFSharpSvcImpl>(printoutPDFService, GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name + " Failed");
            Console.WriteLine(GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name + " Passed");
        }
Пример #5
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!");
     }
 }
Пример #6
0
 public void CreateTeamPerfPDF(string teamAbbr, Meet meetToPrint)
 {
     try
     {
         IPrintoutPDFSvc printoutSvc = (IPrintoutPDFSvc)GetService(typeof(IPrintoutPDFSvc).Name);
         bool            didPrint    = printoutSvc.CreateTeamPerfPDF(teamAbbr, meetToPrint);
         if (!didPrint)
         {
             MessageBox.Show("Printout Failed!");
         }
     }
     catch (Exception e)
     {
         Console.WriteLine("Exception in PrintoutMgr: CreateTeamPerfPDF: " + e);
         MessageBox.Show("Printout Failed!");
     }
 }
Пример #7
0
 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!");
     }
 }