private void fromImagesToolStripMenuItem_Click_1(object sender, EventArgs e) { using (var dialog = new ImportImagesAndDetailsDialog()) { if (dialog.ShowDialog(this) == DialogResult.OK) { var importData = ShopifyImportHelper.GetImportData(dialog.ImagePath); _shopifyData.ImportDataFromImages(dialog.ImagePath, importData); foreach (var dir in Directory.GetDirectories(dialog.ImagePath, "*", SearchOption.AllDirectories)) { importData = ShopifyImportHelper.GetImportData(dir); _shopifyData.ImportDataFromImages(dir, importData); } updateControls(); } } }