private async void BOpenDir_Click(object sender, EventArgs e) { if (folderBrowserDialog1.ShowDialog() == DialogResult.OK) { CreateUI(await Task.Run(async() => await ParseSADF.GetSADFReports(Directory.GetFiles(folderBrowserDialog1.SelectedPath)))); } }
public static async Task <Dictionary <string, List <BaseReport> > > GetSADFReports(string[] files) { var sadf = new ParseSADF(files); return(sadf.TransformDictionary(await sadf.CreateDictionary())); }