Beispiel #1
0
        private void cmbEvents_SelectedIndexChanged(object sender, EventArgs e)
        {
            string eventChosen = cmbEvents.Text;

            lblEventName.Text = eventChosen;
            if (eventChosen != "")
            {
                string tableName = eventData[eventId][5];
                guestList = connect.GuestAttendanceData(tableName);
                tableName = eventData[eventId][4];
                adduList  = connect.AdduAttendanceData(tableName);
            }

            for (int i = 0; i < eventData.Count; i++)
            {
                if (eventData[i][1] == eventChosen)
                {
                    eventId = i;
                }
            }
        }
Beispiel #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     connect = new DatabaseConnect();
     data    = connect.AdduAttendanceData(eventRow[4].ToString());
 }