private void button1_Click(object sender, EventArgs e) { foreach (var Item in Core.GetAudios()) { var Tempogram = Item.GetData <Tempogram>(); if (Tempogram != null) { TempogramProcessor.CalcTempo(Tempogram); } } Core.MarkDatabaseAsChanged(); }