public void deleteDanceSegmentAt(int frame) { if (segments.ContainsKey(frame)) { segments.Remove(frame); } }