public NewSearchResult(Command23.SearchResult result)
 {
     m_FileHash = result.FileHash;
     m_FileSize = result.FileSize;
     m_FileNames = new string[1];
     m_FileNames[0] = result.FileName;
     Core.ParseMetaData(result.MetaData, out m_Album, out m_Artist, out m_Title);
     m_Rating = result.Rating;
 }
        public void AddResult(Command23.SearchResult result)
        {
            if (m_SearchDBThread.IsAlive)
            {
                try
                {
                    m_ResultsToAddBuffer.Lock();

                    if (!m_ResultsToAddBuffer.Contains(result))
                    {
                        m_ResultsToAddBuffer.Add(result);
                    }
                }
                catch (Exception ex)
                {
                    m_Logger.Log(ex, "SearchDBManager: An error was thrown while adding a result to the list.", new object[] { });
                }
                finally
                {
                    m_ResultsToAddBuffer.Unlock();
                }
            }
        }