예제 #1
0
        public async void Command_Start_Click()
        {
            if (this.DupplicateCollection.Where(dc => dc.Selected == true).Count() == this.DupplicateCollection.Count())
            {
                if (MessageBox.Show("You are about to delete all the files. Are you sure that you want to continue?", "mCleaner", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.No)
                {
                    return;
                }
            }
            await Task.Run(() => CommandLogic_DuplicateChecker.I.Start(this.DupplicateCollection, IsMove ? 1 : 0));

            DupplicateCollection.Clear();
            this.EnableRemoveDuplicates = false;
        }
예제 #2
0
        public void Command_ShowDupTab_Click()
        {
            CleanerML.Run = false;
            CleanerML.ShowCleanerDescription   = false;
            CleanerML.btnCleanNowPreviousState = CleanerML.btnPreviewCleanEnable;
            CleanerML.btnPreviewCleanEnable    = false;
            CleanerML.btnCleaningOptionsEnable = false;
            CleanerML.ShowFrontPage            = false;
            this.EnableRemoveDuplicates        = false;
            if (Settings.Default.DupChecker_CustomPath != null && Settings.Default.DupChecker_CustomPath.Count > 0)
            {
                this.EnableScanFolder = true;
            }
            else
            {
                this.EnableScanFolder = false;
            }

            DupplicateCollection.Clear();
            this.ShowWindow = true;

            ProgressText = string.Empty;
        }