//-------------------------------------------------------------------------------------------- public MainForm() { InitializeComponent(); m_duplicated_files_finder = new DuplicatesFinderEngine(addDuplicatedGroup); m_duplicated_files_finder.OnProcessingFinished = ProcessingFinished; m_duplicated_files_finder.OnProgressStarted = ProgressStarted; m_duplicated_files_finder.OnProgressChanged = ProgressChanged; }
//-------------------------------------------------------------------------------------------- private void ProgressStarted(DuplicatesFinderEngine.ProgressType i_progress_type) { if (i_progress_type == DuplicatesFinderEngine.ProgressType.Indeterminate) progressBar.Style = ProgressBarStyle.Marquee; else if (i_progress_type == DuplicatesFinderEngine.ProgressType.Determinate) progressBar.Style = ProgressBarStyle.Continuous; }