private void _imageTracker_ImageAdded(object sender, AddImageEventArgs e) { Image image = e.Image; NuGenSlide slide = new NuGenSlide(); slide.Image = image; _imageSlideDictionary.Add(image, slide); _ctrls.Add(slide); }
private void _imageTracker_ImageInserted(object sender, InsertImageEventArgs e) { Image image = e.Image; NuGenSlide slide = new NuGenSlide(); slide.Image = image; _imageSlideDictionary.Add(image, slide); _ctrls.Add(slide); _ctrls.SetChildIndex(slide, e.Index); }
private void _imageTracker_ImageRemoved(object sender, RemoveImageEventArgs e) { if (_imageSlideDictionary.ContainsKey(e.Image)) { NuGenSlide slide = _imageSlideDictionary[e.Image]; _imageSlideDictionary.Remove(e.Image); _ctrls.Remove(slide); } }
private void _imageTracker_ImageAdded(object sender, AddImageEventArgs e) { Image image = e.Image; NuGenSlide slide = new NuGenSlide(); slide.Image = image; _imageSlideDictionary.Add(image, slide); _ctrls.Add(slide); }
private void _imageTracker_ImageInserted(object sender, InsertImageEventArgs e) { Image image = e.Image; NuGenSlide slide = new NuGenSlide(); slide.Image = image; _imageSlideDictionary.Add(image, slide); _ctrls.Add(slide); _ctrls.SetChildIndex(slide, e.Index); }
protected override void OnControlAdded(ControlEventArgs e) { base.OnControlAdded(e); NuGenSlide slide = e.Control as NuGenSlide; if (slide != null) { slide.Dock = DockStyle.Fill; if (_selectedSlide == null) { _selectedSlide = slide; } } }
private void SetSelectedSlide(NuGenSlide slideToSelect) { Debug.Assert(slideToSelect != null, "slideToSelect != null"); slideToSelect.BringToFront(); _selectedSlide = slideToSelect; }
private void SetSelectedSlide(NuGenSlide slideToSelect) { Debug.Assert(slideToSelect != null, "slideToSelect != null"); slideToSelect.BringToFront(); _selectedSlide = slideToSelect; }