private void Lproductos_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (Lproductos.Rows.Count > 0) { frmABMProductos FP = Owner as frmABMProductos; FP.txtCod.Text = Lproductos.CurrentRow.Cells[0].Value.ToString(); FP.txtDesc.Text = Lproductos.CurrentRow.Cells[1].Value.ToString(); FP.txtCant.Text = "1"; FP.txtCant.Focus(); } Dispose(); Close(); }
private void ABM_Producto(string titulo, bool Proceso = false) { frmABMProductos FP = new frmABMProductos(); AddOwnedForm(FP); FP.TopLevel = false; FP.Dock = DockStyle.Fill; this.Controls.Add(FP); this.Tag = FP; FP.BringToFront(); FP.LbProceso.Text = titulo; if (Proceso == true) { FP.txtCodigo.Text = LProductos.CurrentRow.Cells["cProducto"].Value.ToString(); } FP.Show(); }