private void OnStartAnalysis() { _resultSet.SetAnalyzedFolder(_curPath); StartAnalysisEnabled = false; if (_resultSet.GetNumberOfAnalyzedPictures() > 0) { var clear = MessageBox.Show("Do you want to clear any prevoius analized image?", "Clear resutls?", MessageBoxButtons.YesNo); if (clear == DialogResult.Yes) { _resultSet.ClearPreviousResults(); } } SelectedFolder = string.Format("Analyzing {0} files on folder {1} ", _jpegFilesLocation.Count(), _curPath); analysisWorker.RunWorkerAsync(); }