public void CreateMeetResultsDoc(string gender, DateTime dt, string location, OverallScore scoreToPrint) { IPrintoutDocSvc printoutSvc = (IPrintoutDocSvc)GetService(typeof(IPrintoutDocSvc).Name); bool didPrint = printoutSvc.CreateMeetResultsDoc(gender, dt, location, scoreToPrint); if (!didPrint) { } //MessageBox.Show("Printout Failed!"); }
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!"); }
public void CreateIndEventDoc(string eventName, List <Performance> performances) { IPrintoutDocSvc printoutSvc = (IPrintoutDocSvc)GetService(typeof(IPrintoutDocSvc).Name); bool didPrint = printoutSvc.CreateIndEventDoc(eventName, performances); if (!didPrint) { } //MessageBox.Show("Printout Failed!"); }
public void TestServiceFactoryPrintoutDocSvc() { Console.WriteLine("Inside " + GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name); ServiceFactory myServiceFactory = ServiceFactory.GetInstance(); IPrintoutDocSvc printoutDocService = (IPrintoutDocSvc)myServiceFactory.GetService(typeof(IPrintoutDocSvc).Name); Console.WriteLine("printoutDocServce type: " + printoutDocService.GetType()); Assert.IsInstanceOf <PrintoutDocXSvcImpl>(printoutDocService, GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name + " Failed"); Console.WriteLine(GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name + " Passed"); }
public void CreateIndEventDoc(string eventName, List <Performance> performances) { try { IPrintoutDocSvc printoutSvc = (IPrintoutDocSvc)GetService(typeof(IPrintoutDocSvc).Name); bool didPrint = printoutSvc.CreateIndEventDoc(eventName, performances); if (!didPrint) { MessageBox.Show("Printout Failed!"); } } catch (Exception e) { Console.WriteLine("Exception in PrintoutMgr: CreateIndEventDoc: " + e); MessageBox.Show("Printout Failed!"); } }
public void CreateMeetResultsDoc(string gender, DateTime dt, string location, OverallScore scoreToPrint) { try { IPrintoutDocSvc printoutSvc = (IPrintoutDocSvc)GetService(typeof(IPrintoutDocSvc).Name); bool didPrint = printoutSvc.CreateMeetResultsDoc(gender, dt, location, scoreToPrint); if (!didPrint) { MessageBox.Show("Printout Failed!"); } } catch (Exception e) { Console.WriteLine("Exception in PrintoutMgr: CreateMeetResultsDoc: " + e); MessageBox.Show("Printout Failed!"); } }
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!"); } } }