예제 #1
0
 private void moveparticipantRightBtn_Click(object sender, EventArgs e)
 {
     if (SelectedparticipantsListBox.SelectedItems.Count == 1)
     {
         int currentParticipantIndex = SelectedparticipantsListBox.SelectedIndex;
         selectedParticipants.removeParticipant(currentParticipantIndex);
     }
     updateDisplay();
 }
예제 #2
0
 private void RemoveParticipantBtn_Click(object sender, EventArgs e)
 {
     if (SelectedparticipantsListBox.SelectedItems.Count == 1)
     {
         int         currentIndex = SelectedparticipantsListBox.SelectedIndex;
         Participant temp         = selectedParticipants.getParticipant(currentIndex);
         foreach (Participant participant in allParticipants.getParticipants())
         {
             if (participant == temp)
             {
                 //allParticipantListBox.removeParticipant();
             }
         }
         selectedParticipants.removeParticipant(currentIndex);
     }
     if (allParticipantListBox.SelectedItems.Count == 1)
     {
         int currentIndex = allParticipantListBox.SelectedIndex;
         allParticipants.removeParticipant(currentIndex);
     }
     updateDisplay();
 }