private void timSlideShow_Tick(object sender, EventArgs e)
{
NextPic(1);
//stop playing slideshow at last image
if (GlobalSetting.CurrentIndex == GlobalSetting.ImageList.Length - 1)
{
if (!GlobalSetting.IsLoopBackSlideShow)
{
mnuMainSlideShowPause_Click(null, null);
}
}
}