protected void RemoveDataSource(DataSource dataSource) { if (dataSource != null) { DataSourceManager.RegisterDataSource(dataSource); } }
protected void AddDataSources(IEnumerable <DataSource> dataSources) { if (dataSources != null) { foreach (DataSource dataSource in dataSources) { DataSourceManager.RegisterDataSource(dataSource); } } }