public static string GetName(MsDataFileUri msDataFilePath) { return(msDataFilePath.GetFileName()); }
public IEnumerable <DbSpectrum> GetSpectraByFile(MsDataFileUri file) { return(IsLoaded ? _spectra.Where(kvp => file == null || Equals(kvp.Key.FileName, file.GetFileName())).SelectMany(kvp => kvp.Value) : new DbSpectrum[0]); }