public void executeAction() { chord.breakMultiEffects(); measure.breakCrossMeasureEffectsAtPosition(EffectPosition.After); measure.Remove(chord); measure.ModelCollection.performActionOnSpecificItems( c => c.Position.Index > chord.Position.Index, c => c.Position.Index -= 1); }
public void executeAction() { chords.First().breakMultiEffectsAtPosition(EffectPosition.Into); chords.Last().breakMultiEffectsAtPosition(EffectPosition.After); foreach (Chord chord in chords) { measure.Remove(chord); } measure.ModelCollection.performActionOnSpecificItems( c => c.Position.Index > chords.Last().Position.Index, c => c.Position.Index -= chords.Count); }