Пример #1
0
        private void btnRepeat_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtPath.Text))
            {
                OriginPath = txtPath.Text.Trim();
                tvRepeats.Nodes.Clear();
                Killer kill    = new Killer(OriginPath);
                var    rptList = kill.GetFiles(SubDir);

                Cursor = Cursors.WaitCursor;


                if (InceptionMode)
                {
                    KillList = new List <FileInfo>();
                    KillList.AddRange(kill.EvaluateFileInfoListDuplicated(rptList));
                }

                Cursor = Cursors.Default;

                if (KillList.Count > 0)
                {
                    LoadTreeViewData(KillList, tvRepeats, 1);
                }
                else
                {
                    MessageBox.Show($"No hay archivos repetidos en ningunta ruta");
                }
            }
        }