Пример #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            CatFunciones cate = new CatFunciones(this);

            cate.Show();
            this.Close();
        }
Пример #2
0
 private void SeleccionarRegistro(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         vFuncion vista = new vFuncion();
         if (e.ColumnIndex == 4)
         {
             vista.NUM_SALA    = Convert.ToInt32(dgvFunciones.Rows[e.RowIndex].Cells[0].Value.ToString());
             vista.nombre_peli = dgvFunciones.Rows[e.RowIndex].Cells[1].Value.ToString().Trim();
             vista.Hora_ini    = dgvFunciones.Rows[e.RowIndex].Cells[2].Value.ToString().Trim();
             vista.FechaFun    = Convert.ToDateTime(dgvFunciones.Rows[e.RowIndex].Cells[3].Value.ToString().Trim());
             vista.ID_funcion  = Convert.ToInt32(dgvFunciones.Rows[e.RowIndex].Cells[5].Value.ToString().Trim());
             vista.Id_pelicula = Convert.ToInt32(dgvFunciones.Rows[e.RowIndex].Cells[6].Value.ToString().Trim());
             vista.Cod_sala    = Convert.ToInt32(dgvFunciones.Rows[e.RowIndex].Cells[7].Value.ToString().Trim());
             CatFunciones cat = new CatFunciones(vista, this);
             cat.Show();
             this.Close();
         }
     }
     catch
     { }
 }