private void CargarFuncionalidades() { funcionalidades = data.Select(out exError); funcionalidades.ForEach(delegate(Funcionalidad f) { checkedListFuncionalidades.Items.Add(f.fun_nombre); }); }
private void CargarFuncionalidades() { funcionalidades = fdata.Select(out exError); if (exError != null) { MessageBox.Show("Erro al cargar Rol, " + exError.Message, "Rol", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Close(); } funcionalidades.ForEach(delegate(Funcionalidad f) { checkedListFuncionalidades.Items.Add(f.fun_nombre); }); }