예제 #1
0
파일: EDDatas.cs 프로젝트: Nexam/NexHud
        public uint processUserSearch(NxSearchEntry _search)
        {
            if (_search.searchDisplay == null)
            {
                return(0);
            }

            if (m_lastSearchThread != null)
            {
                m_lastSearchThread.Abort();
            }

            m_lastSearchThread = null;
            m_lastSearchId++;
            m_lastUSRs.Add(m_lastSearchId, new UserSearchResult(_search, m_lastSearchId));

            NexHudEngine.Log("New search for {0} id {1}", _search.searchType, m_lastSearchId);
            m_lastSearchThread = new Thread(() => _startResearch(m_lastSearchId));
            m_lastSearchThread.Start();

            return(m_lastSearchId);
        }
예제 #2
0
 public UserSearchResult(NxSearchEntry _entry, uint _searchId)
 {
     m_entry    = _entry;
     m_searchId = _searchId;
 }