private void nuevoToolStripMenuItem1_Click(object sender, EventArgs e) { Catalogos.GrupoAlta frm = new Catalogos.GrupoAlta(); var _frm = Application.OpenForms["GrupoAlta"] as Catalogos.GrupoAlta; frm._idGrupo = 0; ofunciones.cargarForm(frm, _frm, this); }
private void btnNuevo_Click(object sender, EventArgs e) { GrupoAlta frm = new GrupoAlta(); var menu = Application.OpenForms["menu"] as Menu; var _frm = Application.OpenForms["GrupoAlta"] as Catalogos.GrupoAlta; frm._idGrupo = 0; ofunciones.cargarForm(frm, _frm, menu); }
private void gvData_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { string idGrupo = gvData.Rows[e.RowIndex].Cells["idGrupo"].FormattedValue.ToString(); GrupoAlta frm = new GrupoAlta(); var _frm = Application.OpenForms["GrupoAlta"] as ProductoAlta; var menu = Application.OpenForms["menu"] as Menu; frm._idGrupo = int.Parse(idGrupo); ofunciones.cargarForm(frm, null, menu); } catch (Exception ex) { MessageBox.Show(ex.Message); } }