示例#1
0
 private void PublishersListBox_ItemCheck(object sender, ItemCheckEventArgs e)
 {
     for (var ix = 0; ix < PublishersListBox.Items.Count; ++ix)
     {
         if (ix != e.Index)
         {
             PublishersListBox.SetItemChecked(ix, false);
         }
     }
     RefreshPublisherInfoListBox();
 }
示例#2
0
 private void PublishersListBox_ItemCheck(object sender, ItemCheckEventArgs e)
 {
     if (e.NewValue == CheckState.Checked)
     {
         for (var index = 0; index < PublishersListBox.Items.Count; ++index)
         {
             if (e.Index != index)
             {
                 PublishersListBox.SetItemChecked(index, false);
             }
         }
     }
     LoadBooks();
 }