public List <DocumentosPictureItem> ConvertSqlToDocCollectionItem(DataTable dt)
        {
            int row     = 0;
            var listDoc = new List <DocumentosPictureItem>();

            foreach (DataRow item in dt.Rows)
            {
                Image picture = null;

                if (Convert.IsDBNull(dt.Rows[row][0]) == false)
                {
                    Byte[] data = new Byte[0];
                    data = (Byte[])(dt.Rows[row][0]);
                    MemoryStream mem = new MemoryStream(data);
                    picture = Image.FromStream(mem);
                }
                int pagina  = Convert.ToInt32(dt.Rows[row][1]);
                int tipoDoc = Convert.ToInt32(dt.Rows[row][2]);



                var docItem = new DocumentosPictureItem(picture, tipoDoc, pagina);
                listDoc.Add(docItem);
            }

            return(listDoc);
        }
        private void LoadImage(string file, int tipo, int pagina)
        {
            _imageList.Add(Image.FromFile(file));
            pictureBox1.Image = _imageList[_imageList.Count - 1];

            DocumentosPictureItem documentosPictureItem = new DocumentosPictureItem(_imageList[0], tipo, pagina);


            pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
        }