private void LoadAllchkList() { OperationResult objOperationResult = new OperationResult(); for (int i = 0; i < chklPermisosOpciones.Items.Count - 1; i++) { chklPermisosOpciones.SetItemChecked(i, false); } this.chklPermisosOpciones.SelectedValueChanged -= new System.EventHandler(this.chklPermisosOpciones_SelectedValueChanged); chklPermisosOpciones.DataSource = _protocolBL.GetExternalPermisionForChekedListByTypeId(ref objOperationResult, (int)ExternalUserFunctionalityType.PermisosOpcionesUsuarioExternoWeb); chklPermisosOpciones.DisplayMember = "Value1"; chklPermisosOpciones.ValueMember = "Id"; this.chklPermisosOpciones.SelectedValueChanged += new System.EventHandler(this.chklPermisosOpciones_SelectedValueChanged); for (int i = 0; i < chklNotificaciones.Items.Count - 1; i++) { chklNotificaciones.SetItemChecked(i, false); } this.chklNotificaciones.SelectedValueChanged -= new System.EventHandler(this.chklNotificaciones_SelectedValueChanged); chklNotificaciones.DataSource = _protocolBL.GetExternalPermisionForChekedListByTypeId(ref objOperationResult, (int)ExternalUserFunctionalityType.NotificacionesUsuarioExternoWeb); chklNotificaciones.DisplayMember = "Value1"; chklNotificaciones.ValueMember = "Id"; this.chklNotificaciones.SelectedValueChanged += new System.EventHandler(this.chklNotificaciones_SelectedValueChanged); }
private void LoadAllchkList() { OperationResult objOperationResult = new OperationResult(); //for (int i = 0; i < chklPermisosOpciones.Items.Count - 1; i++) //{ // chklPermisosOpciones.SetItemChecked(i, false); //} chklPermisosOpciones.DataSource = _protocolBL.GetExternalPermisionForChekedListByTypeId(ref objOperationResult, (int)ExternalUserFunctionalityType.PermisosOpcionesUsuarioExternoWeb); chklPermisosOpciones.DisplayMember = "Value1"; chklPermisosOpciones.ValueMember = "Id"; for (int i = 0; i < chklNotificaciones.Items.Count - 1; i++) { chklNotificaciones.SetItemChecked(i, false); } chklNotificaciones.DataSource = _protocolBL.GetExternalPermisionForChekedListByTypeId(ref objOperationResult, (int)ExternalUserFunctionalityType.NotificacionesUsuarioExternoWeb); chklNotificaciones.DisplayMember = "Value1"; chklNotificaciones.ValueMember = "Id"; }