Exemplo n.º 1
0
    public bool NextSlide()
    {
        if (slideIndex + 1 <= slides.Count - 1)
        {
            lastSlide.Deactivate();
            slideIndex++;

            lastSlide = slides[slideIndex];
            lastSlide.Activate();

            return(true);
        }

        return(false);
    }
Exemplo n.º 2
0
    public bool LastSlide()
    {
        if (slideIndex - 1 >= 0)
        {
            lastSlide.Deactivate();
            slideIndex--;

            lastSlide = slides[slideIndex];
            lastSlide.Activate();

            return(true);
        }

        return(false);
    }
Exemplo n.º 3
0
 public void ShowFirst()
 {
     slideIndex = 0;
     lastSlide  = slides[slideIndex];
     lastSlide.Activate();
 }