Пример #1
0
 /// <summary>
 /// Constructor for a Dialog to create a new Event
 /// </summary>
 public DialogParticipantsEnrollment(Event E)
 {
     InitializeComponent();
     this.E = E;
     this.P = new ParticipantEnrollment();
     ClearFields();
     UnlockControls();
     UpdateButtons(true);
 }
Пример #2
0
 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();
     }
 }
Пример #3
0
        /// <summary>
        /// Constructor for a Dialog for an Existing Event
        /// </summary>
        /// <param name="E">Event</param>
        public DialogParticipantsEnrollment(Event E, ParticipantEnrollment P)
        {
            InitializeComponent();

            this.E        = E;
            this.P        = P;
            this.toUpdate = false;

            // Show Event Details
            ShowParticipantEnrollment();
            LockControls();
            UpdateButtons(false);
        }