Example #1
0
        private bool DeleteItem()
        {
            bool success = false;

            try {
                SPA.Web item = new SPA.Web(ItemID);
                if (item.Delete())
                {
                    success = true;
                }
                ItemID = 0;
            } catch (Exception ex) {
                SPA.Error.WriteError(ex);
                if (ShowDebug)
                {
                    lblErrorMessage.Text = ex.ToString();
                }
            }
            return(success);
        }