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))));
     }
 }
示例#2
0
        public static async Task <Dictionary <string, List <BaseReport> > > GetSADFReports(string[] files)
        {
            var sadf = new ParseSADF(files);

            return(sadf.TransformDictionary(await sadf.CreateDictionary()));
        }