public DefinicionRol() { this.funcionalidadesAgregadas = new List <String>(); InitializeComponent(); dao = new DAORoles(); this.button1.Text = "Crear"; this.LlenarListaFuncionalidades(); }
public DefinicionRol(DataGridViewRow row) { this.funcionalidadesAgregadas = new List <String>(); dao = new DAORoles(); this.idRol = (Int32)row.Cells["Id"].Value; InitializeComponent(); this.textBox1.Text = row.Cells["Descripcion"].Value.ToString(); this.checkBox1.Checked = (bool)row.Cells["Habilitado"].Value; this.button1.Text = "Modificar"; this.LlenarListaFuncionalidades(); }
public AbmRol() { InitializeComponent(); this.dao = new DAORoles(); }
private void setupRoles() { DAORoles dao = new DAORoles(); this.roles = dao.getRolesByUserId(user.getId()); }