本文整理汇总了C#中WebsitePanel.Providers.Mail.MailDomain类的典型用法代码示例。如果您正苦于以下问题:C# MailDomain类的具体用法?C# MailDomain怎么用?C# MailDomain使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MailDomain类属于WebsitePanel.Providers.Mail命名空间,在下文中一共展示了MailDomain类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SaveItem
public void SaveItem(MailDomain item)
{
item.CatchAllAccount = ddlCatchAllAccount.SelectedValue;
SaveQuotas(item);
featuresSection.SaveItem(item);
sharingSection.SaveItem(item);
throttlingSection.SaveItem(item);
if (item[MailDomain.SMARTERMAIL_LICENSE_TYPE] == "PRO")
{
secSharing.Visible = false;
sharingSection.Visible = false;
secThrottling.Visible = false;
throttlingSection.Visible = false;
}
else
{
sharingSection.SaveItem(item);
throttlingSection.SaveItem(item);
}
}
示例2: BindItem
public void BindItem(MailDomain item)
{
// Hide/show controls when not enabled on service level
rowMaxDomainDiskSpace.Visible = item.UseDomainDiskQuota;
rowDomainLimits.Visible = item.UseDomainLimits;
rowUserLimits.Visible = item.UseUserLimits;
txtMaxDomainDiskSpace.Text = item.MaxDomainSizeInMB.ToString();
txtMaxDomainUsers.Text = item.MaxDomainUsers.ToString();
txtLimitVolume.Text = item.MegaByteSendLimit.ToString();
txtLimitNumber.Text = item.NumberSendLimit.ToString();
txtDefaultUserQuotaInMB.Text = item.DefaultUserQuotaInMB.ToString();
txtDefaultUserMaxMessageSizeMegaByte.Text = item.DefaultUserMaxMessageSizeMegaByte.ToString();
txtDefaultUserMegaByteSendLimit.Text = item.DefaultUserMegaByteSendLimit.ToString();
txtDefaultUserNumberSendLimit.Text = item.DefaultUserNumberSendLimit.ToString();
if (!IsPostBack)
{
var accounts = ES.Services.MailServers.GetMailAccounts(item.PackageId, false);
ddlCatchAllAccount.DataSource = accounts;
ddlCatchAllAccount.DataBind();
ddlPostMasterAccount.DataSource = accounts;
ddlPostMasterAccount.DataBind();
}
Utils.SelectListItem(ddlCatchAllAccount, item.CatchAllAccount);
Utils.SelectListItem(ddlPostMasterAccount, item.PostmasterAccount);
}
示例3: BindItem
public void BindItem(MailDomain item)
{
cbShowcontentfilteringmenu.Checked = item.ShowContentFilteringMenu;
cbShowdomainaliasmenu.Checked = item.ShowDomainAliasMenu;
cbShowlistmenu.Checked = item.ShowListMenu;
cbShowspammenu.Checked = item.ShowSpamMenu;
cbShowDomainReports.Checked = item.ShowsStatsMenu;
}
示例4: BindItem
public void BindItem(MailDomain item)
{
BindMailboxes(item);
chkDomainSmartHostEnabled.Checked = Convert.ToBoolean(item["MailEnable_SmartHostEnabled"]);
chkDomainSmartHostAuthSenders.Checked = Convert.ToBoolean(item["MailEnable_SmartHostAuth"]);
txtDestination.Text = item.RedirectionHosts;
}
示例5: BindItem
public void BindItem(MailDomain item)
{
cbGlobalAddressList.Checked = item.IsGlobalAddressList;
cbSharedCalendars.Checked = item.SharedCalendars;
cbSharedContacts.Checked = item.SharedContacts;
cbSharedFolders.Checked = item.SharedFolders;
cbSharedNotes.Checked = item.SharedNotes;
cbSharedTasks.Checked = item.SharedTasks;
}
示例6: BindMailboxes
private void BindMailboxes(MailDomain item)
{
MailAccount[] accounts = ES.Services.MailServers.GetMailAccounts(item.PackageId, false);
MailAlias[] forwardings = ES.Services.MailServers.GetMailForwardings(item.PackageId, false);
BindAccounts(item, ddlCatchAllAccount, accounts);
BindAccounts(item, ddlCatchAllAccount, forwardings);
Utils.SelectListItem(ddlCatchAllAccount, item.CatchAllAccount);
}
示例7: BindItem
public void BindItem(MailDomain item)
{
txtMessagesPerHour.Text = item[MailDomain.SMARTERMAIL5_MESSAGES_PER_HOUR];
cbMessagesPerHour.Checked = Convert.ToBoolean(item[MailDomain.SMARTERMAIL5_MESSAGES_PER_HOUR_ENABLED]);
txtBandwidthPerHour.Text = item[MailDomain.SMARTERMAIL5_BANDWIDTH_PER_HOUR];
cbBandwidthPerHour.Checked = Convert.ToBoolean(item[MailDomain.SMARTERMAIL5_BANDWIDTH_PER_HOUR_ENABLED]);
txtBouncesPerHour.Text = item[MailDomain.SMARTERMAIL5_BOUNCES_PER_HOUR];
cbBouncesPerHour.Checked = Convert.ToBoolean(item[MailDomain.SMARTERMAIL5_BOUNCES_PER_HOUR_ENABLED]);
}
示例8: SaveItem
public void SaveItem(MailDomain item)
{
item[MailDomain.SMARTERMAIL5_MESSAGES_PER_HOUR] = txtMessagesPerHour.Text;
item[MailDomain.SMARTERMAIL5_MESSAGES_PER_HOUR_ENABLED] = cbMessagesPerHour.Checked.ToString();
item[MailDomain.SMARTERMAIL5_BANDWIDTH_PER_HOUR] = txtBandwidthPerHour.Text;
item[MailDomain.SMARTERMAIL5_BANDWIDTH_PER_HOUR_ENABLED] = cbBandwidthPerHour.Checked.ToString();
item[MailDomain.SMARTERMAIL5_BOUNCES_PER_HOUR] = txtBouncesPerHour.Text;
item[MailDomain.SMARTERMAIL5_BOUNCES_PER_HOUR_ENABLED] = cbBouncesPerHour.Checked.ToString();
}
示例9: SaveItem
public void SaveItem(MailDomain item)
{
item.IsGlobalAddressList = cbGlobalAddressList.Checked;
item.SharedCalendars = cbSharedCalendars.Checked;
item.SharedContacts = cbSharedContacts.Checked;
item.SharedFolders = cbSharedFolders.Checked;
item.SharedNotes = cbSharedNotes.Checked;
item.SharedTasks = cbSharedTasks.Checked;
}
示例10: SaveQuotas
private void SaveQuotas(MailDomain item)
{
item.MaxDomainSizeInMB = Utils.ParseInt(txtSize.Text);
item.MaxDomainAliases = Utils.ParseInt(txtDomainAliases.Text);
item.MaxDomainUsers = Utils.ParseInt(txtUser.Text);
item.MaxAliases = Utils.ParseInt(txtUserAliases.Text);
item.MaxLists = Utils.ParseInt(txtMailingLists.Text);
item.MaxRecipients = Utils.ParseInt(txtRecipientsPerMessage.Text);
item.MaxMessageSize = Utils.ParseInt(txtMessageSize.Text);
}
示例11: BindItem
public void BindItem(MailDomain item)
{
cbShowcontentfilteringmenu.Checked = item.ShowContentFilteringMenu;
cbShowdomainaliasmenu.Checked = item.ShowDomainAliasMenu;
cbShowlistmenu.Checked = item.ShowListMenu;
cbShowspammenu.Checked = item.ShowSpamMenu;
cbShowDomainReports.Checked = Convert.ToBoolean(item[MailDomain.SMARTERMAIL5_SHOW_DOMAIN_REPORTS]);
cbEnablePopRetreival.Checked = Convert.ToBoolean(item[MailDomain.SMARTERMAIL5_POP_RETREIVAL_ENABLED]);
cbEnableCatchAlls.Checked = Convert.ToBoolean(item[MailDomain.SMARTERMAIL5_CATCHALLS_ENABLED]);
}
示例12: SaveItem
public void SaveItem(MailDomain item)
{
item.ShowContentFilteringMenu = cbShowcontentfilteringmenu.Checked;
item.ShowDomainAliasMenu = cbShowdomainaliasmenu.Checked;
item.ShowListMenu = cbShowlistmenu.Checked;
item.ShowSpamMenu = cbShowspammenu.Checked;
item[MailDomain.SMARTERMAIL5_SHOW_DOMAIN_REPORTS] = cbShowDomainReports.Checked.ToString();
item[MailDomain.SMARTERMAIL5_POP_RETREIVAL_ENABLED] = cbEnablePopRetreival.Checked.ToString();
item[MailDomain.SMARTERMAIL5_CATCHALLS_ENABLED] = cbEnableCatchAlls.Checked.ToString();
}
示例13: BindItem
private void BindItem()
{
try
{
if (!IsPostBack)
{
// load item if required
if (PanelRequest.ItemID > 0)
{
// existing item
try
{
item = ES.Services.MailServers.GetMailDomain(PanelRequest.ItemID);
}
catch (Exception ex)
{
ShowErrorMessage("MAIL_GET_DOMAIN", ex);
return;
}
if (item != null)
{
// save package info
ViewState["PackageId"] = item.PackageId;
}
else
RedirectToBrowsePage();
}
}
// load provider control
LoadProviderControl((int)ViewState["PackageId"], "Mail", providerControl, "EditDomain.ascx");
if (!IsPostBack)
{
// bind item to controls
if (item != null)
{
// bind item to controls
litDomainName.Text = item.Name;
// other controls
IMailEditDomainControl ctrl = (IMailEditDomainControl)providerControl.Controls[0];
ctrl.BindItem(item);
BindPointers();
}
}
}
catch (Exception ex)
{
ShowErrorMessage("MAIL_INIT_DOMAIN_FORM", ex);
return;
}
}
示例14: SaveItem
public void SaveItem(MailDomain item)
{
item.CatchAllAccount = ddlCatchAllAccount.SelectedValue;
item.PostmasterAccount = ddlPostMasterAccount.SelectedValue;
item.MaxDomainSizeInMB = Convert.ToInt32(txtMaxDomainDiskSpace.Text);
item.MaxDomainUsers = Convert.ToInt32(txtMaxDomainUsers.Text);
item.NumberSendLimit = Convert.ToInt32(txtLimitNumber.Text);
item.MegaByteSendLimit = Convert.ToInt32(txtLimitVolume.Text);
item.DefaultUserQuotaInMB = Convert.ToInt32(txtDefaultUserQuotaInMB.Text);
item.DefaultUserMaxMessageSizeMegaByte = Convert.ToInt32(txtDefaultUserMaxMessageSizeMegaByte.Text);
item.DefaultUserMegaByteSendLimit = Convert.ToInt32(txtDefaultUserMegaByteSendLimit.Text);
item.DefaultUserNumberSendLimit = Convert.ToInt32(txtDefaultUserNumberSendLimit.Text);
}
示例15: SaveItem
public void SaveItem(MailDomain item)
{
item.AbuseAccount = ddlAbuseAccount.SelectedValue;
item.PostmasterAccount = ddlPostmasterAccount.SelectedValue;
// if we have a smarthost we need to clear the catchall
if (chkDomainSmartHostEnabled.Checked)
item.CatchAllAccount= "";
else
item.CatchAllAccount = ddlCatchAllAccount.SelectedValue;
item["MailEnable_SmartHostEnabled"] = chkDomainSmartHostEnabled.Checked.ToString();
item["MailEnable_SmartHostAuth"] = chkDomainSmartHostAuthSenders.Checked.ToString();
item.RedirectionHosts = txtDestination.Text;
}