示例#1
0
        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;
            }
        }
示例#2
0
        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;
            }
        }