Ejemplo n.º 1
0
        /// <summary>
        /// </summary>
        /// <param name="sv"></param>
        public void MoveSliderVelocityLine(SliderVelocityInfo sv)
        {
            if (sv == null || !SliderVelocityLines.ContainsKey(sv))
            {
                return;
            }

            SliderVelocityLines[sv].Y = Height - Height * (float)(sv.StartTime / (AudioEngine.Track.Length));
            Container.ForceRecache();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// </summary>
        /// <param name="sv"></param>
        public void RemoveSliderVelocityLine(SliderVelocityInfo sv)
        {
            if (sv == null)
            {
                return;
            }

            if (SliderVelocityLines.ContainsKey(sv))
            {
                SliderVelocityLines[sv].Destroy();
                SliderVelocityLines.Remove(sv);
            }

            Container.ForceRecache();
        }