/// <summary> /// Permet de verouiller la liste /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void chkBoxVerrouiller_CheckStateChanged(object sender, System.EventArgs e) { if (chkBoxVerrouiller.CheckState == CheckState.Checked) { LstItems.ClearSelected(); LstItems.Enabled = false; } else if (chkBoxVerrouiller.CheckState == CheckState.Unchecked) { LstItems.ClearSelected(); LstItems.Enabled = true; } }
/// <summary> /// Permet de définir le mode de sélection de la liste /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void rdBtnChanged(object sender, System.EventArgs e) { if (rdBtnSimple.Checked) { LstItems.ClearSelected(); LstItems.SelectionMode = SelectionMode.One; } else if (rdBtnMultiple.Checked) { LstItems.ClearSelected(); LstItems.SelectionMode = SelectionMode.MultiSimple; } else if (rdBtnEtendue.Checked) { LstItems.ClearSelected(); LstItems.SelectionMode = SelectionMode.MultiExtended; } }