public override bool ApplyChanges()
        {
            EnsureChildControls();
            ScriptletPart displayPart = WebPartToEdit as ScriptletPart;

            if (displayPart != null)
            {
                displayPart.Layout       = _LayoutChoices.SelectedValue;
                displayPart.Header       = _HeaderChoices.SelectedValue;
                displayPart.LeftSidebar  = _LeftSidebarChoices.SelectedValue;
                displayPart.Content      = _ContentChoices.SelectedValue;
                displayPart.RightSidebar = _RightSidebarChoices.SelectedValue;
                displayPart.Footer       = _FooterChoices.SelectedValue;
                //recreate control collection for changes
                displayPart.InternalCreateChildControls();
            }
            // ATTEMPT TO RESET CACHE FOR ONE PAGE CHECKOUT INDICATOR
            WebflowManager.ClearCache();
            return(true);
        }
        public override void SyncChanges()
        {
            EnsureChildControls();
            ScriptletPart displayPart = this.WebPartToEdit as ScriptletPart;

            if (displayPart != null)
            {
                this.Title = "Edit " + displayPart.Title;
                ListItem selected = _LayoutChoices.Items.FindByValue(displayPart.Layout);
                if (selected != null)
                {
                    _LayoutChoices.SelectedIndex = _LayoutChoices.Items.IndexOf(selected);
                }
                selected = _HeaderChoices.Items.FindByValue(displayPart.Header);
                if (selected != null)
                {
                    _HeaderChoices.SelectedIndex = _HeaderChoices.Items.IndexOf(selected);
                }
                selected = _LeftSidebarChoices.Items.FindByValue(displayPart.LeftSidebar);
                if (selected != null)
                {
                    _LeftSidebarChoices.SelectedIndex = _LeftSidebarChoices.Items.IndexOf(selected);
                }
                selected = _ContentChoices.Items.FindByValue(displayPart.Content);
                if (selected != null)
                {
                    _ContentChoices.SelectedIndex = _ContentChoices.Items.IndexOf(selected);
                }
                selected = _RightSidebarChoices.Items.FindByValue(displayPart.RightSidebar);
                if (selected != null)
                {
                    _RightSidebarChoices.SelectedIndex = _RightSidebarChoices.Items.IndexOf(selected);
                }
                selected = _FooterChoices.Items.FindByValue(displayPart.Footer);
                if (selected != null)
                {
                    _FooterChoices.SelectedIndex = _FooterChoices.Items.IndexOf(selected);
                }
            }
        }