Exemple #1
0
        private void dgvPeliculas_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            vPelicula obj_pel = new vPelicula();

            if (e.ColumnIndex == 8)
            {
                obj_pel.nombre_pelicula = dgvPeliculas.Rows[e.RowIndex].Cells[0].Value.ToString();
                obj_pel.Duracion        = dgvPeliculas.Rows[e.RowIndex].Cells[1].Value.ToString();
                obj_pel.nom_genero      = dgvPeliculas.Rows[e.RowIndex].Cells[2].Value.ToString();
                obj_pel.nom_idioma      = dgvPeliculas.Rows[e.RowIndex].Cells[3].Value.ToString();
                obj_pel.nom_clasif      = dgvPeliculas.Rows[e.RowIndex].Cells[4].Value.ToString();
                obj_pel.Sinopsis        = dgvPeliculas.Rows[e.RowIndex].Cells[5].Value.ToString();
                obj_pel.Imagen_pelicula = (byte[])dgvPeliculas.Rows[e.RowIndex].Cells[6].Value;
                obj_pel.Id_pelicula     = (Int32)dgvPeliculas.Rows[e.RowIndex].Cells[7].Value;
                Peliculas peli = new Peliculas(obj_pel, this);
                peli.ShowDialog();
            }
        }
Exemple #2
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            Peliculas obj = new Peliculas(this);

            obj.ShowDialog();
        }