Пример #1
0
        private void dgvCategoria_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (txtFlag.Text == "1")
            {
                FrmProducto frmProd = FrmProducto.GetInscance();

                if (dgvCategoria.CurrentRow != null)
                {
                    frmProd.SetCategoria(dgvCategoria.CurrentRow.Cells[1].Value.ToString(),
                                         dgvCategoria.CurrentRow.Cells[2].Value.ToString());
                    frmProd.Show();
                    Close();
                }
            }
        }