public override void SyncChanges() { EnsureChildControls(); SPSDocumentExplorer webpart = WebPartToEdit as SPSDocumentExplorer; if (webpart != null) { if (!string.IsNullOrEmpty(webpart.ListGuid)) { chkShowUploadButton.Checked = webpart.ShowUploadButton; } } base.SyncChanges(); }
public override bool ApplyChanges() { EnsureChildControls(); SPSDocumentExplorer webpart = WebPartToEdit as SPSDocumentExplorer; if (webpart != null) { webpart.ShowUploadButton = chkShowUploadButton.Checked; webpart.ClearControlState(); return(base.ApplyChanges()); } return(false); }