public void DeleteThis() { if (Mode == Lanotalium.Editor.TimeValuePairMode.ScrollSpeed) { OperationManager.DeleteScroll(ScrollData); } else if (Mode == Lanotalium.Editor.TimeValuePairMode.Bpm) { OperationManager.DeleteBpm(BpmData); } }