private void verParteKitToolStripMenuItem_Click(object sender, EventArgs e) { if (dgvDetalleItemAmp.Rows.Count > 0) { int IdDetalle = Convert.ToInt32(dgvDetalleItemAmp.Rows[dgvDetalleItemAmp.CurrentCell.RowIndex].Cells[4].Value); string TipoPieza = dgvDetalleItemAmp.Rows[dgvDetalleItemAmp.CurrentCell.RowIndex].Cells[8].Value.ToString(); FrmPrincipalPanel frmParentForm = (FrmPrincipalPanel)Application.OpenForms["FrmPrincipalPanel"]; if (IdDetalle > 0) { if (TipoPieza.Trim() == "K") { FrmKit Frmkit = new FrmKit(); Frmkit.IdIetmSearch = IdDetalle; frmParentForm.AbrirFormulario(Frmkit, 370, 230); } else { FrmParte FrmParte = new FrmParte(); FrmParte.IdIetmSearch = IdDetalle; frmParentForm.AbrirFormulario(FrmParte, 370, 230); } } } }
private async void button2_ClickAsync(object sender, EventArgs e) { await CargaAsync(); FrmParte FormParte = new FrmParte(this); FormParte.TipoAcceso = TipoAcceso; AbrirFormulario(FormParte, 470, 230); }
private void button2_Click(object sender, EventArgs e) { FrmParte FrmParte = new FrmParte(); FrmParte.MdiParent = this; FrmParte.StartPosition = FormStartPosition.Manual; FrmParte.Location = new Point(370, 230); //mdiClientPanel1.Controls.Add(FrmParte); FrmParte.Show(); }