private void nuevo_Click(object sender, EventArgs e) { AltaRol altaRol = new AltaRol(); altaRol.ShowDialog(); buscarRoles(); }
public static AltaRol obtenerInstancia() { if (instancia == null) { instancia = new AltaRol(); } return(instancia); }
private void button3_Click(object sender, EventArgs e) { using (AltaRol form = new AltaRol()) { var result = form.ShowDialog(); //AL CERRAR LA VENTANA DESPUES DE DAR DE ALTA UN NUEVO ROL VUELVO A CARGAR LA LISTA this.buscar_Click(sender, e); } }
private Boolean validoInput(AltaRol form) { return(!form.textBoxNombreRol.Text.Equals("") && !form.dataGridFuncionalidades.SelectedRows.Count.Equals(0)); }
private void btnRolesCargar_Click(object sender, EventArgs e) { FormUtils.cambiarFormulario(this, "AltaRol"); AltaRol.obtenerInstancia().refrescar(); }