private void StudentsListBox_ItemCheck(object sender, ItemCheckEventArgs e)
 {
     for (var ix = 0; ix < StudentsListBox.Items.Count; ++ix)
     {
         if (ix != e.Index)
         {
             StudentsListBox.SetItemChecked(ix, false);
         }
     }
     RefreshStudentInfoListBox();
 }
Пример #2
0
 private void StudentsListBox_ItemCheck(object sender, ItemCheckEventArgs e)
 {
     if (e.NewValue == CheckState.Checked)
     {
         for (var index = 0; index < StudentsListBox.Items.Count; ++index)
         {
             if (e.Index != index)
             {
                 StudentsListBox.SetItemChecked(index, false);
             }
         }
     }
     LoadInfo();
 }