public void LlenarGrid() { datImagen datImg = new datImagen(); gridControl1.DataSource = datImg.listaimagen(); if (gridControl1.DataSource == null) { MessageBox.Show("", "", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void frmFotoSeguridad_Load(object sender, EventArgs e) { try { List <Image> img = new List <Image>(); foreach (var item in dtimg.listaimagen()) { img.Add(Image.FromStream(item.ayuda)); imageSlider1.Images.Add(Image.FromStream(item.ayuda)); } } catch (Exception) { MessageBox.Show("Error en la carga del Formulario"); } }