private void btnEditar_Click(object sender, EventArgs e) { var formValorEditar = new frmValorEditar(_idValor, this); formValorEditar.MdiParent = this.ParentForm; formValorEditar.Show(); this.Hide(); }
private void nuevoToolStripMenuItem1_Click(object sender, EventArgs e) { if (_frmValorEditar == null) { _frmValorEditar = new frmValorEditar(0, this); } _frmValorEditar.Show(); this.Hide(); }