Ejemplo n.º 1
0
        public void CreateTeamPerfDoc(string teamAbbr, string gender, Meet meetToPrint)
        {
            IPrintoutDocSvc printoutSvc = (IPrintoutDocSvc)GetService(typeof(IPrintoutDocSvc).Name);
            bool            didPrint    = printoutSvc.CreateTeamPerfDoc(teamAbbr, gender, meetToPrint);

            if (!didPrint)
            {
            }
            //MessageBox.Show("Printout Failed!");
        }
Ejemplo n.º 2
0
 public void CreateTeamPerfDoc(string teamAbbr, string gender, Meet meetToPrint)
 {
     if (meetToPrint == null)
     {
         MessageBox.Show("Meet has no data to print");
     }
     else
     {
         try
         {
             IPrintoutDocSvc printoutSvc = (IPrintoutDocSvc)GetService(typeof(IPrintoutDocSvc).Name);
             bool            didPrint    = printoutSvc.CreateTeamPerfDoc(teamAbbr, gender, meetToPrint);
             if (!didPrint)
             {
                 MessageBox.Show("Printout Failed!");
             }
         }
         catch (Exception e)
         {
             Console.WriteLine("Exception in PrintoutMgr: CreateTeamPerfDoc: " + e);
             MessageBox.Show("Printout Failed!");
         }
     }
 }