/// <summary>
 /// Constructor for a Dialog to create a new Event
 /// </summary>
 public DialogParticipantsDropOut(Event E)
 {
     InitializeComponent();
     this.E = E;
     this.P = new ParticipantDropOut();
     ClearFields();
     UnlockControls();
     UpdateButtons(true);
 }
Esempio n. 2
0
 private void EditParticipantsDropOut_Click(object sender, EventArgs e)
 {
     if (GetSelectedID(participantsDropOutList) != -1)
     {
         ParticipantDropOut        P      = DBLayer.ParticipantsDropOut.Read(GetSelectedID(participantsDropOutList), E.Number);
         DialogParticipantsDropOut dialog = new DialogParticipantsDropOut(E, P);
         dialog.Show();
     }
 }
        /// <summary>
        /// Constructor for a Dialog for an Existing Event
        /// </summary>
        /// <param name="E">Event</param>
        public DialogParticipantsDropOut(Event E, ParticipantDropOut U)
        {
            InitializeComponent();

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

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