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