void btnUpdate_Click(object sender, EventArgs e)
        {
            using (DisableItemEvent disableItemEvent = new DisableItemEvent())
            {
                var currentItem = SPContext.Current.ListItem;
                if (radPaid.Checked)
                    currentItem["Paid"] = true;
                else
                    currentItem["Paid"] = false;
                currentItem.SystemUpdate();
            }

            Back();
        }
 /// <summary>
 /// An item was updated.
 /// </summary>
 public override void ItemUpdated(SPItemEventProperties properties)
 {
     base.ItemUpdated(properties);
     string status = properties.ListItem["GSApproval"].ToString();
     if (status == TaskResult.Pending.ToString()
         && !IsWorkflowRunning(properties.ListItem))
         StartWorkflow(properties);
     else
     {
         using (DisableItemEvent disableItemEvent = new DisableItemEvent())
         {
             //Set permission for reservation
             BeachCampHelper.ChangePermission(properties.Web, properties.ListId, properties.ListItemId, status);
         }
     }
 }
        /// <summary>
        /// An item was added.
        /// </summary>
        public override void ItemAdded(SPItemEventProperties properties)
        {
            base.ItemAdded(properties);

            string status = properties.ListItem["GSApproval"].ToString();
            if (status == TaskResult.Pending.ToString())
                //BeachCampHelper.StartWorkflow(properties.ListItem, "Approve Beach Camp Reservation");
                StartWorkflow(properties);
            else
            {
                using (DisableItemEvent disableItemEvent = new DisableItemEvent())
                {
                    //Set permission for reservation
                    BeachCampHelper.ChangePermission(properties.Web, properties.ListId, properties.ListItemId, TaskResult.Draft.ToString());

                }
            }
        }