public override void SyncChanges()
        {
            EnsureChildControls();
            ActionEditorTest webpart = WebPartToEdit as ActionEditorTest;

            if (webpart != null)
            {
                txtConfig.Text       = webpart.XmlConfig;
                chkDevErrors.Checked = webpart.ShowExtendedErrors;
            }
        }
        public override bool ApplyChanges()
        {
            EnsureChildControls();
            ActionEditorTest webpart = WebPartToEdit as ActionEditorTest;

            if (webpart != null)
            {
                webpart.ClearControlState();
                webpart.XmlConfig          = txtConfig.Text;
                webpart.ShowExtendedErrors = chkDevErrors.Checked;
            }

            return(true);
        }