private void btnAlta_Click(object sender, EventArgs e) { frmAltaPersonas frmAltaPersona = new frmAltaPersonas(); frmAltaPersona.ShowDialog(); llenarGrilla(); }
private void cmbPersona_SelectedIndexChanged(object sender, EventArgs e) { if (activar) { if (((Persona)(cmbPersona.SelectedItem)).Apellido == "Nueva..") { frmAltaPersonas frmAltaPersona = new frmAltaPersonas(); frmAltaPersona.ShowDialog(); cmbPersona.DataSource = cU.getPersonasSinUsu(); cmbPersona.DisplayMember = "mostrar"; } else { txtUsuario.Enabled = txtClave.Enabled = true; } } }