Exemple #1
0
 public static void DoShowMessages(
     ImportMessages messages,
     string caption,
     string descripion)
 {
     using (ImportMessagesForm f = new ImportMessagesForm())
         f.ShowMessages(messages, caption, descripion);
 }
Exemple #2
0
        bool IC1ReportImportFilter.Import(string rptFile, List <C1FlexReport> reportList)
        {
            _rptList         = reportList;
            _crystalFileName = rptFile;

            if (!DoImport(FlexCRI, false))
            {
                MessageForm.Error(Strings.CrystalFilter.ErrNoCrystal);
                return(false);
            }

            // show warnings...
            if (_messages.Count > 0)
            {
                ImportMessagesForm.DoShowMessages(_messages, Strings.CrystalFilter.MessageTitle,
                                                  Strings.CrystalFilter.ImportErrors);
            }

            // return false (don't erase list)
            return(false);
        }