private void btn_test_imgs_open_Click(object sender, EventArgs e) { var folder = OpenPictureFolderFileDialog.openFolder(); if (folder.GetPath() != "") { testFolder = folder; if (testFolder.GetCount() > 0) { lTest_count.Text = "Found " + testFolder.GetCount(); tb_test_imgs_path.Text = testFolder.GetPath(); Properties.Settings.Default.last_path_to_test_pictures = testFolder.GetPath(); Properties.Settings.Default.Save(); Properties.Settings.Default.Upgrade(); } else { lTest_count.Text = "Not found"; } } }
private void btn_imgs_open_Click(object sender, EventArgs e) { var path = OpenPictureFolderFileDialog.openFolder(); tb_imgs_path.Text = path.GetPath(); recognizeImageFolder.Load(path.GetPath()); Properties.Settings.Default.last_path_to_pictures = path.GetPath(); Properties.Settings.Default.Save(); Properties.Settings.Default.Upgrade(); lImages.Text = "Found " + recognizeImageFolder.GetCount(); /*imageFolder = OpenPictureFolderFileDialog.openFolder(); * if (imageFolder.getCount() > 0) * { * lImages.Text = "Found " + imageFolder.getCount(); * tb_imgs_path.Text = imageFolder.getPath(); * Properties.Settings.Default.last_path_to_pictures = imageFolder.getPath(); * Properties.Settings.Default.Save(); * Properties.Settings.Default.Upgrade(); * } * else * lImages.Text = "Not found";*/ }