Exemplo n.º 1
0
        private void RegisterParticipant(IParticipant participant, bool unregister)
        {
            if (participant != null)
            {
                if (unregister)
                {
                    participant.AttendStatus = Attend.Business.Text.AttendStatus.Confirmed.ToString();
                }
                else
                {
                    participant.AttendStatus = Attend.Business.Text.AttendStatus.Participated.ToString();
                }

                AttendRegistrationEngine.SaveParticipant(participant);
                AddStatusText(string.Format("Participant {0} with code {1} is now unregistered.", participant.Email, participant.Code));
            }
            else
            {
                AddStatusText(string.Format("ERROR REGISTERING PARTICIPANT"));
            }
            DataBindTables();
        }