Esempio n. 1
0
        private void EditParticipantsOnTeam_Click(object sender, EventArgs e)
        {
            if (participantsOnTeamList.FocusedItem != null)
            {
                // Get primary keys
                ListViewItem firstSelectedItem = participantsOnTeamList.FocusedItem;
                int          participantID     = Convert.ToInt32(firstSelectedItem.SubItems[0].Text);
                string       teamName          = firstSelectedItem.SubItems[3].Text;

                ParticipantOnTeam P = DBLayer.ParticipantsOnTeam.Read(participantID, teamName);

                DialogParticipantsOnTeam dialog = new DialogParticipantsOnTeam(E, P);
                dialog.Show();
            }
        }
Esempio n. 2
0
        private void AddParticipantsOnTeam_Click(object sender, EventArgs e)
        {
            DialogParticipantsOnTeam dialog = new DialogParticipantsOnTeam(E);

            dialog.Show();
        }