private void UpdateBpmCollection() { var i = 0; foreach (var source in BpmCollection.ToList()) { i++; source.TimeInt = i; } }
private void UpdateBpmCollection() { var i = 0; if (_observableCollectionBpm == null) { _observableCollectionBpm = new DiagramCollection <HrModel>(); } _observableCollectionBpm.Clear(); foreach (var source in BpmCollection.ToList()) { i++; source.TimeInt = i; _observableCollectionBpm.Add(source); } }