CodeImp.Gluon.LibraryBrowserDisplayPanel.animatefilestimer_Tick C# (CSharp) Метод

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

private animatefilestimer_Tick ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        private void animatefilestimer_Tick(object sender, EventArgs e)
        {
            // Make the next item visible
            int cnt = 0;
            for(int i = 0; i < numbuttons; i++)
            {
                if(!filebuttons[i].Visible && !string.IsNullOrEmpty(filebuttons[i].Text))
                {
                    General.Sounds.Play("list");

                    filebuttons[i].Visible = true;
                    filebuttons[i].SetupColors(General.Colors);

                    if(searchresults)
                    {
                        filebuttons[i + SINGLE_COL_NUM_BUTTONS].Visible = true;
                        filebuttons[i + SINGLE_COL_NUM_BUTTONS].SetupColors(General.Colors);
                    }

                    if(cnt == 3)
                        return;
                    else
                        cnt++;
                }
            }

            if(searchbuttonplaced)
                searchbutton.Visible = true;

            animatefilestimer.Stop();
        }