private void BindSettings() { try { PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId); bool mailFoldersAllowed = cntx.Quotas.ContainsKey(Quotas.EXCHANGE2007_MAILENABLEDPUBLICFOLDERS) && !cntx.Quotas[Quotas.EXCHANGE2007_MAILENABLEDPUBLICFOLDERS].QuotaExhausted; // get settings ExchangePublicFolder folder = ES.Services.ExchangeServer.GetPublicFolderGeneralSettings( PanelRequest.ItemID, PanelRequest.AccountID); litDisplayName.Text = folder.DisplayName; btnMailEnable.Visible = !folder.MailEnabled && mailFoldersAllowed; btnMailDisable.Visible = folder.MailEnabled && mailFoldersAllowed; tabs.MailEnabledFolder = folder.MailEnabled; // bind form txtName.Text = folder.Name; chkHideAddressBook.Checked = folder.HideFromAddressBook; authors.SetAccounts(folder.AuthorsAccounts); } catch (Exception ex) { messageBox.ShowErrorMessage("EXCHANGE_GET_PFOLDER_SETTINGS", ex); } }
public ExchangePublicFolder GetPublicFolderMailFlowSettings(string folder) { try { LogStart("GetPublicFolderMailFlowSettings"); ExchangePublicFolder ret = ES.GetPublicFolderMailFlowSettings(folder); LogEnd("GetPublicFolderMailFlowSettings"); return(ret); } catch (Exception ex) { LogError("GetPublicFolderMailFlowSettings", ex); throw; } }
private void BindSettings() { try { // get settings ExchangePublicFolder folder = ES.Services.ExchangeServer.GetPublicFolderMailFlowSettings( PanelRequest.ItemID, PanelRequest.AccountID); litDisplayName.Text = folder.DisplayName; // bind form acceptAccounts.SetAccounts(folder.AcceptAccounts); chkSendersAuthenticated.Checked = folder.RequireSenderAuthentication; rejectAccounts.SetAccounts(folder.RejectAccounts); } catch (Exception ex) { messageBox.ShowErrorMessage("EXCHANGE_GET_PFOLDER_MAILFLOW", ex); } }