protected override void OnDataBinding(EventArgs e)
        {
            int numberOfCopied = AttendRegistrationEngine.GetOrCreateParticipantsClipboard().Count;

            CopyMovePlaceHolder.Visible = numberOfCopied > 0;
            CopyMovePlaceHolder.DataBind();
            SelectedRepeater.DataSource = AttendRegistrationEngine.GetOrCreateParticipantsClipboard();
            SelectedRepeater.DataBind();
            base.OnDataBinding(e);
        }
        protected void DeleteParticipantsCopy_OnClick(object sender, EventArgs e)
        {
            foreach (IParticipant IParticipant in AttendRegistrationEngine.GetOrCreateParticipantsClipboard())
            {
                ServiceLocator.Current.GetInstance <IContentRepository>().Delete((IParticipant as IContent).ContentLink, true, AccessLevel.NoAccess);
            }

            AttendRegistrationEngine.CopyParticipantsRemoveAll();
            System.Web.UI.ScriptManager.RegisterStartupScript(this, this.GetType(), "scriptid", "window.parent.location.href='" + EPiServer.Editor.PageEditing.GetEditUrl((CurrentPage as IContent).ContentLink) + "'", true);
        }
        protected void CheckAll_OnClick(object sender, EventArgs e)
        {
            int numberOfCopied = AttendRegistrationEngine.GetOrCreateParticipantsClipboard().Count;

            if (numberOfCopied > 0)
            {
                AttendRegistrationEngine.CopyParticipantsRemoveAll();
            }
            if (numberOfCopied == 0)
            {
                List <IParticipant> contents = Participants;
                contents = FilterStatus(contents);
                contents = FilterEmail(contents);
                contents = FilterSessions(contents);
                contents = FilterSearch(contents);

                foreach (var IParticipant in contents)
                {
                    AttendRegistrationEngine.CopyParticipants(IParticipant as IParticipant);
                }
            }
        }
 protected override void OnPreRender(EventArgs e)
 {
     CopyMovePlaceHolder.Visible = AttendRegistrationEngine.GetOrCreateParticipantsClipboard().Count > 0;
 }
 protected void PasteParticipantsExport_OnClick(object o, EventArgs e)
 {
     ParticipantExport.Export(AttendRegistrationEngine.GetOrCreateParticipantsClipboard());
 }