Exemple #1
0
        protected override void OnMouseDown(MouseEventArgs e)
        {
            if (e.Location.Y > Height - TimelineHeight)
            {
                _navTimeline = true;
            }

            //if (distance(e.Location, _tbSpeed.Grab) < 6)
            //   _tbSpeed.Nav = true;
            if (distance(e.Location, _tbVolume.Grab) < 6)
            {
                _tbVolume.Nav = true;
            }

            if (distance(e.Location, new Point(Width - 20, Height - TimelineHeight - 20)) < 20)
            {
                PlayPause?.Invoke(this);
            }
        }
Exemple #2
0
 public static void OnPlayPause()
 {
     PlayPause?.Invoke(null, null);
 }