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 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!"); } }