private static void view_ShownEditor(object sender, EventArgs e) { GridView view = sender as GridView; AnyControlEdit edit = view.ActiveEditor as AnyControlEdit; if (edit != null) { MyImageSlider slider = edit.Properties.Control as MyImageSlider; slider.ImageList = imageList; OnEnter(slider); slider.MouseClick += slider_MouseClick; slider.Leave += slider_Leave; } }
private static void view_ShownEditor(object sender, EventArgs e) { GridView view = sender as GridView; AnyControlEdit edit = view.ActiveEditor as AnyControlEdit; if (edit != null) { currentCollection = images[view.FocusedRowHandle]; MyImageSlider slider = edit.Properties.Control as MyImageSlider; slider.VirtualMode = true; slider.GetImage += slider_GetImage; slider.CanGetNextPrevImage += slider_CanGetNextPrevImage; slider.UpdateImage(); currentImageIndex = 0; } }