/// <summary>
        /// Updates the passed WeekActivePeriod to reflect the state of the checkboxes.
        /// </summary>
        /// <param name="period"></param>
        public void SetWeekActivePeriod()
        {
            if (this.WeekActivePeriod == null)
            {
                this.WeekActivePeriod = new Services.WeekActivePeriod();
            }

            //period.ClearAllHours();
            var days = hiddenActives.Value.Split('|');

            this.WeekActivePeriod.Monday          = int.Parse(days[0].Split('.')[0]);
            this.WeekActivePeriod.MondaySecond    = int.Parse(days[0].Split('.')[1]);
            this.WeekActivePeriod.Tuesday         = int.Parse(days[1].Split('.')[0]);
            this.WeekActivePeriod.TuesdaySecond   = int.Parse(days[1].Split('.')[1]);
            this.WeekActivePeriod.Wednesday       = int.Parse(days[2].Split('.')[0]);
            this.WeekActivePeriod.WednesdaySecond = int.Parse(days[2].Split('.')[1]);
            this.WeekActivePeriod.Thursday        = int.Parse(days[3].Split('.')[0]);
            this.WeekActivePeriod.ThursdaySecond  = int.Parse(days[3].Split('.')[1]);
            this.WeekActivePeriod.Friday          = int.Parse(days[4].Split('.')[0]);
            this.WeekActivePeriod.FridaySecond    = int.Parse(days[4].Split('.')[1]);
            this.WeekActivePeriod.Saturday        = int.Parse(days[5].Split('.')[0]);
            this.WeekActivePeriod.SaturdaySecond  = int.Parse(days[5].Split('.')[1]);
            this.WeekActivePeriod.Sunday          = int.Parse(days[6].Split('.')[0]);
            this.WeekActivePeriod.SundaySecond    = int.Parse(days[6].Split('.')[1]);
        }
 void btnNotifications_Click(object sender, EventArgs e)
 {
     this.lblScreen.Text                 = "Notification";
     this.pvNotifications.Selected       = true;
     this.txtContactDetail.Text          = String.Empty;
     this.txtNotificationName.Text       = String.Empty;
     this.txtNotificationTitle.Text      = String.Empty;
     this.chkNotificationEnabled.Checked = false;
     this.chkOutgoing.Checked            = false;
     this.chkIncoming.Checked            = false;
     CurrentRecipients.Clear();
     rgContacts.Rebind();
     this.WeekActivePeriod = null;
     UpdateUIToWAP();
     CLearWAP();
     rgNotifications.Rebind();
 }