예제 #1
0
        private void DCFileInfo_FileDone(object sender, FileInfoEventArgs e)
        {
            string[] Items = new string[5];

            e.Items.CopyTo(Items, 0);

            alFiles.Add(Items);

            showProgress(prgHole, e.TotalProgress);

            showProgress(prgFile, 100);

            showStatus("Hashed " + Items[0] + " : " + Items[3]);
        }
예제 #2
0
        private void DCFileInfo_AllFilesRead(object sender, FileInfoEventArgs e)
        {
            setText(this, "Duplicate Finder - Clearing non Duplicates");

            clearNonDuplicates();

            System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.BelowNormal;

            Thread.CurrentThread.Priority = ThreadPriority.BelowNormal;

            setText(this, "Duplicate Finder - Adding Files to Listview");

            if (alFiles.Count == 0)
            {
                lockControls(false);

                m_fileInfos = new FileInfo[0];

                return;
            }

            FormatAddFilesToLV();

            showProgress(prgFile, 100);

            showProgress(prgHole, 100);

            setText(this, "Duplicate Finder - Organizing Groups");

            groupOrganize();



            setWindowState();

            fillDeletableItems();

            Thread.CurrentThread.Priority = ThreadPriority.Normal;

            System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.Normal;

            setCursor(Cursors.Default);

            lockControls(false);
        }
예제 #3
0
        private void DCFileInfo_FileProgressed(object sender, FileInfoEventArgs e)
        {
            showProgress(prgFile, e.Progress);

            showStatus(TrunC(e.CurrentFile, 100));
        }