Beispiel #1
0
        private void BeatBar_OnTimeMouseDown(object sender, TimeSpan e)
        {
            if ((Keyboard.Modifiers & ModifierKeys.Control) != 0)
            {
                RemoveClosestBeat(e);
            }
            else
            {
                Beats.Add(e);
                Beats.Sort();
            }

            BeatBar.InvalidateVisual();
        }
Beispiel #2
0
 private void AddBeat(TimeSpan positionTotalSeconds)
 {
     Debug.WriteLine(positionTotalSeconds);
     Beats.Add(positionTotalSeconds);
     Beats.Sort();
 }
Beispiel #3
0
 /// <summary>
 /// Performs the neccessary finalization steps after all information was written.
 /// </summary>
 public void Finish()
 {
     Beats.Sort((a, b) => a.Start - b.Start);
 }