Esempio n. 1
0
        public override bool TryGetLibInfo(LibKey key, out SpectrumHeaderInfo libInfo)
        {
            BiblioSpectrumInfo info;

            if (_dictLibrary != null && _dictLibrary.TryGetValue(key, out info))
            {
                libInfo = new BiblioSpecSpectrumHeaderInfo(Name, info.Copies);
                return(true);
            }
            libInfo = null;
            return(false);
        }
Esempio n. 2
0
 public bool Equals(BiblioSpecSpectrumHeaderInfo obj)
 {
     if (ReferenceEquals(null, obj))
     {
         return(false);
     }
     if (ReferenceEquals(this, obj))
     {
         return(true);
     }
     return(base.Equals(obj) && obj.SpectrumCount == SpectrumCount);
 }
Esempio n. 3
0
 public override bool TryGetLibInfo(LibKey key, out SpectrumHeaderInfo libInfo)
 {
     if (_dictLibrary != null)
     {
         foreach (var item in _dictLibrary.ItemsMatching(key.LibraryKey, true))
         {
             libInfo = new BiblioSpecSpectrumHeaderInfo(Name, item.Copies);
             return(true);
         }
     }
     libInfo = null;
     return(false);
 }
Esempio n. 4
0
 public bool Equals(BiblioSpecSpectrumHeaderInfo obj)
 {
     if (ReferenceEquals(null, obj)) return false;
     if (ReferenceEquals(this, obj)) return true;
     return base.Equals(obj) && obj.SpectrumCount == SpectrumCount;
 }
Esempio n. 5
0
 public override bool TryGetLibInfo(LibKey key, out SpectrumHeaderInfo libInfo)
 {
     BiblioSpectrumInfo info;
     if (_dictLibrary != null && _dictLibrary.TryGetValue(key, out info))
     {
         libInfo = new BiblioSpecSpectrumHeaderInfo(Name, info.Copies);
         return true;
     }
     libInfo = null;
     return false;
 }