示例#1
0
        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();
                }
            }
        }
示例#2
0
        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();
                }
            }
        }