Exemplo n.º 1
0
 static void slider_CanGetNextPrevImage(object sender, DevExpress.XtraEditors.Controls.CanGetNextPrevImageEventArgs e)
 {
     if (e.IsNext)
     {
         e.CanGetImage = (currentImageIndex < currentCollection.Images.Count - 1);
     }
     else
     {
         e.CanGetImage = (currentImageIndex > 0);
     }
 }
 private void imageSlider1_CanGetNextPrevImage(object sender, DevExpress.XtraEditors.Controls.CanGetNextPrevImageEventArgs e)
 {
     if (e.IsNext)
     {
         e.CanGetImage = (currentImageIndex < images.Length - 1);
     }
     else
     {
         e.CanGetImage = (currentImageIndex > 0);
     }
 }