private void EditParticipantsEnrollment_Click(object sender, EventArgs e) { if (GetSelectedID(participantsEnrollmentList) != -1) { ParticipantEnrollment P = DBLayer.ParticipantsEnrollments.Read(GetSelectedID(participantsEnrollmentList), E.Number); DialogParticipantsEnrollment dialog = new DialogParticipantsEnrollment(E, P); dialog.Show(); } }
private void AddParticipantsEnrollment_Click(object sender, EventArgs e) { DialogParticipantsEnrollment dialog = new DialogParticipantsEnrollment(E); dialog.Show(); }