Example #1
0
 private void sortFolderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MessageBox.Show("WARNING!: This operation will reset all current work" + Environment.NewLine + "---"+  Environment.NewLine + "This might take a VERY long time if a lot of images are similar" +  Environment.NewLine +
         "time taken can be exponental in worst case! test on subsets first");
     if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
     {
         if (Checkfolder(workingFolders, folderBrowserDialog1.SelectedPath) == false)
         {
             MessageBox.Show("Folders is already in use. Please pick different folder");
         }
         else
         {
             bwFold = folderBrowserDialog1.SelectedPath;
             files = new Dictionary<string, int>();
             fmProgress = new ProcceingDialog2();
             bwSortImageFolder.RunWorkerAsync();
            // bwSortImageFolder.
             fmProgress.ShowDialog( this );
             fmProgress = null;
         }
     }
 }