private ReportDataSource(ConnectionObject connectionObject, ReportSettings reportSettings)
        {
            this.connectionObject = connectionObject;
            this.reportSettings   = reportSettings;

            this.connection = connectionObject.Connection;
            if (this.connection.State == ConnectionState.Open)
            {
                this.connection.Close();
            }
            if (this.reportSettings.DataModel != GlobalEnums.PushPullModel.PushData)
            {
                SqlQueryChecker.Check(this.reportSettings.CommandType, this.reportSettings.CommandText);
            }
            this.dataSource = this.FillDataSet().Tables[0];
            CheckDataSource();

            /*
             *      this.dataViewStrategy = new TableStrategy((DataTable)this.dataSource,
             *                                                reportSettings);
             *
             *      this.dataViewStrategy.ListChanged += new EventHandler <ListChangedEventArgs> (NotifyListChanged);
             *
             */
        }
 private ReportDataSource(object dataSource, ReportSettings reportSettings)
 {
     this.dataSource     = dataSource;
     this.reportSettings = reportSettings;
     if (!this.CheckDataSource())
     {
         throw new MissingDataSourceException();
     }
     if (this.reportSettings.DataModel != GlobalEnums.PushPullModel.PushData)
     {
         SqlQueryChecker.Check(this.reportSettings.CommandType, this.reportSettings.CommandText);
     }
 }
 private static void CheckReportSettings(ReportSettings settings)
 {
     try {
         if (settings.DataModel != GlobalEnums.PushPullModel.PushData)
         {
             SqlQueryChecker.Check(settings.CommandType, settings.CommandText);
         }
     } catch (IllegalQueryException) {
         throw;
     }
     catch (Exception) {
         throw;
     }
 }