private void Nuevo_Button_Click(object sender, EventArgs e) { EditorDeRoles editForm = new EditorDeRoles("nuevo"); editForm.ShowDialog(); cargarTodosLosRoles(); }
private void Modificar_Button_Click(object sender, EventArgs e) { Rol unRol = Roles_Datagrid.CurrentRow.DataBoundItem as Rol; EditorDeRoles editForm = new EditorDeRoles("modificar", unRol); editForm.ShowDialog(); cargarTodosLosRoles(); }