Exemple #1
0
        public override void SyncChanges()
        {
            EnsureChildControls();
            SPSDocumentExplorer webpart = WebPartToEdit as SPSDocumentExplorer;

            if (webpart != null)
            {
                if (!string.IsNullOrEmpty(webpart.ListGuid))
                {
                    chkShowUploadButton.Checked = webpart.ShowUploadButton;
                }
            }
            base.SyncChanges();
        }
Exemple #2
0
        public override bool ApplyChanges()
        {
            EnsureChildControls();
            SPSDocumentExplorer webpart = WebPartToEdit as SPSDocumentExplorer;

            if (webpart != null)
            {
                webpart.ShowUploadButton = chkShowUploadButton.Checked;
                webpart.ClearControlState();

                return(base.ApplyChanges());
            }
            return(false);
        }