private void OnBtnGo_Click(object sender, System.EventArgs e) { List <string> inputPaths = GetInputPathsOrNull(list_excel); if (inputPaths == null) { return; } StoreOption(); progress_export.ForeColor = Color.Green; progress_export.Value = 0; if (string.IsNullOrEmpty(_opt.@namespace)) { _opt.@namespace = "AutoGenerated.DB"; } int ret = DataFlowRunner.Run(_opt); if (ret != 0) { progress_export.ForeColor = Color.Red; } btn_reveal.Enabled = true; progress_export.Value = 100; }
private List <string> GetSrcExcelPaths(DragEventArgs e) { bool isFileDrop = e.Data.GetDataPresent(DataFormats.FileDrop); if (!isFileDrop) { return(new()); } object dropData = e.Data.GetData(DataFormats.FileDrop); if (dropData == null) { return(new()); } string[] dropPaths = dropData as string[]; if (dropPaths == null) { return(new()); } return(DataFlowRunner.GetExcelFpaths(dropPaths)); }