private static void Main(string[] args) { var db = new Mp3Database(@"C:\Users\Adam\OneDrive\Music"); IProgress <string> progress = new Progress <string>(ShowProgress); db.FillAsync(progress).Wait(); }
private async System.Threading.Tasks.Task AddNewMusic() { IProgress <string> progress = new Progress <string>(ShowProgress); toolStripProgressBar1.Visible = true; await _db.FillAsync(progress); toolStripProgressBar1.Visible = false; ShowDbMetrics(); tbSearch.Enabled = true; }