Пример #1
0
 private void EditSponsorshipEvents_Click(object sender, EventArgs e)
 {
     if (GetSelectedID(sponsorshipEventsList) != -1)
     {
         SponsorshipEvent       S      = DBLayer.SponsorshipEvents.Read(GetSelectedID(sponsorshipEventsList), E.Number);
         DialogSponsorshipEvent dialog = new DialogSponsorshipEvent(E, S);
         dialog.Show();
     }
 }
Пример #2
0
 /// <summary>
 /// Constructor for a Dialog to create a new Event
 /// </summary>
 public DialogSponsorshipEvent(Event E)
 {
     InitializeComponent();
     this.E        = E;
     this.S        = new SponsorshipEvent();
     this.toUpdate = false;
     ClearFields();
     UnlockControls();
     UpdateButtons(true);
 }
Пример #3
0
        /// <summary>
        /// Constructor for a Dialog for an Existing Event
        /// </summary>
        /// <param name="E">Event</param>
        public DialogSponsorshipEvent(Event E, SponsorshipEvent S)
        {
            InitializeComponent();

            this.E        = E;
            this.S        = S;
            this.toUpdate = true;

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