示例#1
0
 private void OpenReportFiles(List <string> arrCaptions,
                              List <string> arrReportFiles)
 {
     if (m_bOpenReportFiles)
     {
         for (int i = 0; i < arrReportFiles.Count; i++)
         {
             string sFile          = arrReportFiles[i];
             string sCaption       = arrCaptions[i];
             bool   bDeleteOnClose =
                 (m_ReportFileDestination ==
                  ReportFileDestination.TempFiles);
             Form1.OpenReportDelegate ord =
                 new Form1.OpenReportDelegate(m_formParent.OpenReport);
             m_formParent.Invoke(ord,
                                 new Object[] { sFile,
                                                sCaption,
                                                bDeleteOnClose });
         }
     }
 }
示例#2
0
 private void OpenReportFiles( List<string> arrCaptions,
                               List<string> arrReportFiles )
 {
     if ( m_bOpenReportFiles ) {
         for ( int i = 0; i < arrReportFiles.Count; i++ ) {
             string sFile = arrReportFiles[i];
             string sCaption = arrCaptions[i];
             bool bDeleteOnClose =
                 (m_ReportFileDestination ==
                  ReportFileDestination.TempFiles);
             Form1.OpenReportDelegate ord =
                 new Form1.OpenReportDelegate(m_formParent.OpenReport);
             m_formParent.Invoke( ord,
                                  new Object[] {sFile,
                                                sCaption,
                                                bDeleteOnClose} );
         }
     }
 }