Esempio n. 1
0
        private void btnWalkonAttendee_Click(object sender, EventArgs e)
        {
            frmWalkonRegistration frmWalkon = new frmWalkonRegistration();

            frmWalkon.ShowDialog();
            WalkonResult newWalkon = frmWalkon.GetWalkonResult();

            DataRow newAttendeeRecord = dtCSVTable.NewRow();

            newAttendeeRecord["FirstName"] = newWalkon.FirstName;
            newAttendeeRecord["LastName"]  = newWalkon.LastName;
            newAttendeeRecord["Company"]   = newWalkon.Company;
            newAttendeeRecord["Email"]     = newWalkon.Email;
            newAttendeeRecord["Attended"]  = "Yes";

            dtCSVTable.Rows.Add(newAttendeeRecord);

            AttendeeBadge abWalkon = CreateAttendeeBadgeFromInputs(
                newWalkon.FirstName,
                newWalkon.LastName,
                newWalkon.Company);

            if (!abWalkon.Equals(null))
            {
                PrintAttendeeBadge(abWalkon);
            }
        }
Esempio n. 2
0
        private void btnReprintNameBadge_Click(object sender, EventArgs e)
        {
            AttendeeBadge abSelected = CreateAttendeeBadgeFromSelectedRow();

            if (!abSelected.Equals(null))
            {
                PrintAttendeeBadge(abSelected);
            }
        }
Esempio n. 3
0
        private void btnCheckinAttendee_Click(object sender, EventArgs e)
        {
            dtCSVTable.Rows[dgvLoadedList.CurrentCell.RowIndex].SetField("Attended", "Yes");
            AttendeeBadge abSelected = CreateAttendeeBadgeFromSelectedRow();

            if (!abSelected.Equals(null))
            {
                PrintAttendeeBadge(abSelected);
            }
            saveSinceLastEdit = false;
        }