CodeImp.Gluon.MediaPlayerDisplayPanel.scrolltimer_Tick C# (CSharp) Метод

scrolltimer_Tick() приватный Метод

private scrolltimer_Tick ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        private void scrolltimer_Tick(object sender, EventArgs e)
        {
            listoffset += scrolldelta;

            if(listoffset > (playlist.Count - listitems.Length))
            {
                listoffset = playlist.Count - listitems.Length;
                scrolltimer.Stop();
                General.Sounds.Stop("list");
                General.Sounds.Play("214");
            }

            if(listoffset < 0)
            {
                listoffset = 0;
                scrolltimer.Stop();
                General.Sounds.Stop("list");
                General.Sounds.Play("214");
            }

            UpdatePlaylistItems();
        }