public async void UpdateButton_Click() { using (var pb = new ProgressWindow()) { pb.AddStacks(MangaIndex.Providers); pb.Show(); await MangaIndex.Update(pb.GetProgress); } }