public void AssociateWithReportAsCurrent(IReportDatasourceMetadataWithTraversal definition, XtraReport report)
 {
     _currentlySelectedDictionary.AddIfUniqueOrReplace(definition, report.GetHashCode());
 }
 public IReportDatasourceMetadataWithTraversal GetCurrentAssociationForReport(XtraReport report)
 {
     IReportDatasourceMetadataWithTraversal output;
     _currentlySelectedDictionary.TryGetValue(report.GetHashCode(), out output);
     return output;
 }
 public IEnumerable<IReportDatasourceMetadataWithTraversal> GetAssociationsForReport(XtraReport report)
 {
     return _allItemsDictionary.GetOrCreateValue(report.GetHashCode(),
                                                 () => new HashSet<IReportDatasourceMetadataWithTraversal>());
 }
 public void AssociateWithReport(IReportDatasourceMetadataWithTraversal definition, XtraReport report)
 {
     var hashset = _allItemsDictionary.GetOrCreateValue(report.GetHashCode(),
                                                        () => new HashSet<IReportDatasourceMetadataWithTraversal>());
     if (!hashset.Contains(definition))
         hashset.Add(definition);
 }