Exemplo n.º 1
0
        public Boolean isDuplicate(ref DVFile data)
        {
            foreach (DVFile temp in data.getMatchList())
            {
                if (lst_dvf_Matches.Contains(temp))
                    return true;
            }

            return false;
        }
Exemplo n.º 2
0
        public FilePair(ref DVFile dvF1, ref DVFile dvF2, ref System.Collections.Hashtable hashResults)
        {
            dv_File1 = dvF1;
            dv_File2 = dvF2;
            hstbResult = hashResults;

            arr_str_Paths = new String[2];

            arr_str_Paths[0] = dvF1.getFullPath();
            arr_str_Paths[1] = dvF2.getFullPath();
        }
Exemplo n.º 3
0
        public void mergeMatches(ref DVFile dvf2)
        {
            rwls_MatchList.EnterWriteLock();

            try
            {

            foreach (DVFile temp in dvf2.lst_dvf_Matches)
            {
                if (!lst_dvf_Matches.Contains(temp))
                    lst_dvf_Matches.Add(temp);
            }

            lst_dvf_Matches.Sort();

            foreach (DVFile temp in lst_dvf_Matches)
            {
                temp.replaceMatches(ref lst_dvf_Matches);
            }

            }
            finally
            {
                rwls_MatchList.ExitWriteLock();
            }
        }