protected string GetClass()
 {
     if (CurrentBlock.EmailSendOptions == SendOptions.Action)
     {
         return("success");
     }
     else
     {
         if (
             AttendScheduledEmailEngine.GetSendDate(CurrentBlock,
                                                    ServiceLocator.Current.GetInstance <IContentRepository>().Get <EventPageBase>(CurrentBlock.EventPage)) >
             DateTime.Now)
         {
             return("success");
         }
     }
     return("");
 }
 protected string GetScheduledDate()
 {
     if (CurrentBlock.EmailSendOptions == SendOptions.Specific)
     {
         return(CurrentBlock.SpecificDateScheduled.ToString("g"));
     }
     if (CurrentBlock.EmailSendOptions == SendOptions.Action)
     {
         return(CurrentBlock.SendOnStatus.ToString());
     }
     if (CurrentBlock.EventPage == null)
     {
         return(string.Empty);
     }
     if (CurrentBlock.EmailSendOptions == SendOptions.Relative)
     {
         return(CurrentBlock.ScheduledText() + ": " + AttendScheduledEmailEngine.GetSendDate(CurrentBlock, DataFactory.Instance.Get <EventPageBase>(CurrentBlock.EventPage)).ToShortDateString());
     }
     return(string.Empty);
 }