private void BeatBar_OnTimeMouseDown(object sender, TimeSpan e) { if ((Keyboard.Modifiers & ModifierKeys.Control) != 0) { RemoveClosestBeat(e); } else { Beats.Add(e); Beats.Sort(); } BeatBar.InvalidateVisual(); }
private void AddBeat(TimeSpan positionTotalSeconds) { Debug.WriteLine(positionTotalSeconds); Beats.Add(positionTotalSeconds); Beats.Sort(); }
/// <summary> /// Performs the neccessary finalization steps after all information was written. /// </summary> public void Finish() { Beats.Sort((a, b) => a.Start - b.Start); }