本文整理汇总了C#中WebsitePanel.Providers.Mail.MailList类的典型用法代码示例。如果您正苦于以下问题:C# MailList类的具体用法?C# MailList怎么用?C# MailList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MailList类属于WebsitePanel.Providers.Mail命名空间,在下文中一共展示了MailList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BindItem
public void BindItem(MailList item)
{
itemName = item.Name;
txtDescription.Text = item.Description;
if (String.IsNullOrEmpty(item.ModeratorAddress))
{
Utils.SelectListItem(ddlListModerators, GetLocalizedString("Text.SelectModerator"));
selectedModerator = GetLocalizedString("Text.SelectModerator");
}
else
{
Utils.SelectListItem(ddlListModerators, item.ModeratorAddress);
selectedModerator = item.ModeratorAddress;
}
chkReplyToList.Checked = (item.ReplyToMode == ReplyTo.RepliesToList);
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
txtPassword.Text = item.Password;
chkPasswordEnabled.Checked = item.RequirePassword;
txtSubjectPrefix.Text = item.SubjectPrefix;
chkSubjectPrefixEnabled.Checked = item.EnableSubjectPrefix;
txtMaxMessageSize.Text = item.MaxMessageSize.ToString();
txtMaxRecipients.Text = item.MaxRecipientsPerMessage.ToString();
// members
mailEditItems.Items = item.Members;
}
示例2: SaveItem
public void SaveItem(MailList item)
{
item.PostingMode = (PostingMode)Enum.Parse(typeof(PostingMode), ddlPostingMode.SelectedValue, true);
item.ModeratorAddress = txtEmailAnnouncements.Text;
item.Members = mailEditItems.Items;
item.RequireSmtpAuthentication = cbSMTPAuthentication.Checked;
}
示例3: SaveItem
public void SaveItem(MailList item)
{
item.ReplyToMode = (ReplyTo)Enum.Parse(typeof(ReplyTo), ddlReplyTo.SelectedValue, true);
item.PostingMode = (PostingMode)Enum.Parse(typeof(PostingMode), ddlPostingMode.SelectedValue, true);
item.Members = mailEditItems.Items;
}
示例4: BindItem
public void BindItem(MailList item)
{
Utils.SelectListItem(ddlReplyTo, item.ReplyToMode);
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
mailEditItems.Items = item.Members;
}
示例5: BindItem
public void BindItem(MailList item)
{
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
mailEditItems.Items = item.Members;
txtEmailAnnouncements.Text = item.ModeratorAddress;
cbSMTPAuthentication.Checked = item.RequireSmtpAuthentication;
ToggleFormControls();
}
示例6: BindItem
public void BindItem(MailList item)
{
Utils.SelectListItem(ddlReplyTo, item.ReplyToMode);
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
chkModerationEnabled.Checked = item.Moderated;
txtModeratorEmail.Text = item.ModeratorAddress;
mailEditItems.Items = item.Members;
}
示例7: SaveItem
public void SaveItem(MailList item)
{
item.ReplyToMode = (ReplyTo)Enum.Parse(typeof(ReplyTo), ddlReplyTo.SelectedValue, true);
item.PostingMode = (PostingMode)Enum.Parse(typeof(PostingMode), ddlPostingMode.SelectedValue, true);
// save password
item.Password = txtPassword.Text;
item.Moderated = chkModerationEnabled.Checked;
item.ModeratorAddress = txtModeratorEmail.Text;
item.Members = mailEditItems.Items;
}
示例8: SaveItem
public void SaveItem(MailList item)
{
item.ReplyToMode = (ReplyTo)Enum.Parse(typeof(ReplyTo), ddlReplyTo.SelectedValue, true);
item.PostingMode = (PostingMode)Enum.Parse(typeof(PostingMode), ddlPostingMode.SelectedValue, true);
item.PasswordProtection = (PasswordProtection)Enum.Parse(typeof(PasswordProtection), ddlPasswordProtection.SelectedValue, true);
// save password
item.Password = (txtPassword.Text.Length > 0) ? txtPassword.Text : (string)ViewState["PWD"];
item.Moderated = chkModerationEnabled.Checked;
item.ModeratorAddress = txtModeratorEmail.Text;
item.Description = txtDescription.Text;
item.Members = mailEditItems.Items;
item.MaxMessageSizeEnabled = chkMaxMessageSizeEnabled.Checked;
item.MaxMessageSize = Int32.Parse(txtMaxMessageSize.Text);
item.MaxRecipientsPerMessage = Int32.Parse(txtMaxRecipients.Text);
}
示例9: BindItem
public void BindItem(MailList item)
{
txtDescription.Text = item.Description;
if (!String.IsNullOrEmpty(item.ModeratorAddress))
{
ddlListModerators.SelectedValue = item.ModeratorAddress;
}
ddlMembersSource.SelectedValue = item.MembersSource.ToString();
mailEditItems.Items = item.Members;
ddlFromHeaderAction.SelectedValue = item.FromHeader.ToString();
ddlReplyToHeaderAction.SelectedValue = item.ReplyToHeader.ToString();
txtFromHeaderValue.Text = item.ListFromAddress;
txtReplyToHeaderValue.Text = item.ListReplyToAddress;
txtSubjectPrefix.Text = item.SubjectPrefix;
ddllblOriginator.SelectedValue = item.Originator.ToString();
ddlPostingMode.SelectedValue = item.PostingMode.ToString();
ddlPasswordProtection.SelectedValue = item.PasswordProtection.ToString();
txtPassword.Text = item.Password;
ddlDefaultRights.SelectedValue = ((int) item.DefaultRights).ToString();
txtMaxMessageSize.Text = item.MaxMessageSize.ToString();
txtMaxMembers.Text = item.MaxMembers.ToString();
chkSendToSender.Checked = item.SendToSender;
chkDigestMailingList.Checked = item.DigestMode;
txtMaxMessagesPerMinute.Text = item.MaxMessagesPerMinute.ToString();
chkSendSubscribe.Checked = item.SendSubscribe;
chkSendUnSubscribe.Checked = item.SendUnsubscribe;
ddlConfirmSubscription.SelectedValue = item.ConfirmSubscription.ToString();
chkCommandInSubject.Checked = item.CommandsInSubject;
chkEnableSubscribe.Checked = !item.DisableSubscribecommand;
chkEnableUnsubscribe.Checked = item.AllowUnsubscribe;
chkEnableLists.Checked = !item.DisableListcommand;
chkEnableWhich.Checked = !item.DisableWhichCommand;
chkEnableReview.Checked = !item.DisableReviewCommand;
chkEnableVacation.Checked = !item.DisableVacationCommand;
chkModerated.Checked = item.Moderated;
txtCommandPassword.Text = item.CommandPassword;
chkSuppressCommandResponses.Checked = item.SuppressCommandResponses;
ddlMembersSource_SelectedIndexChanged(this, null);
ddlFromHeaderAction_SelectedIndexChanged(this, null);
ddlReplyToHeaderAction_SelectedIndexChanged(this, null);
chkModerated_CheckedChanged(this, null);
ddlPasswordProtection_SelectedIndexChanged(this, null);
}
示例10: BindItem
public void BindItem(MailList item)
{
Utils.SelectListItem(ddlReplyTo, item.ReplyToMode);
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
Utils.SelectListItem(ddlPrefixOption, item.PrefixOption);
txtSubjectPrefix.Text = item.SubjectPrefix;
chkModerationEnabled.Checked = item.Moderated;
txtModeratorEmail.Text = item.ModeratorAddress;
mailEditItems.Items = item.Members;
if (!String.IsNullOrEmpty(item.Password))
{
txtPassword.Attributes["value"] = txtPassword.Text = item.Password;
}
else
{
txtPassword.Text = "";
}
txtDescription.Text = item.Description;
switch (item.AttachHeader)
{
case 1:
cbHeader.Checked = true;
break;
case 0:
cbHeader.Checked = false;
break;
}
switch (item.AttachFooter)
{
case 1:
cbFooter.Checked = true;
break;
case 0:
cbFooter.Checked = false;
break;
}
txtHeaderText.Text = item.TextHeader;
txtFooterText.Text = item.TextFooter;
txtHeaderHtml.Text = item.HtmlHeader;
txtFooterHtml.Text = item.HtmlFooter;
}
示例11: BindItem
public void BindItem(MailList item)
{
Utils.SelectListItem(ddlReplyTo, item.ReplyToMode);
Utils.SelectListItem(ddlPostingMode, item.PostingMode);
Utils.SelectListItem(ddlPasswordProtection, item.PasswordProtection);
chkModerationEnabled.Checked = item.Moderated;
txtModeratorEmail.Text = item.ModeratorAddress;
txtDescription.Text = item.Description;
mailEditItems.Items = item.Members;
chkMaxMessageSizeEnabled.Checked = item.MaxMessageSizeEnabled;
txtMaxMessageSize.Text = item.MaxMessageSize.ToString();
txtMaxRecipients.Text = item.MaxRecipientsPerMessage.ToString();
if (!String.IsNullOrEmpty(item.Password))
{
txtPassword.Attributes["value"] = txtPassword.Text = item.Password;
}
else
{
txtPassword.Text = "";
}
}
示例12: SaveItem
public void SaveItem(MailList item)
{
item.Description = txtDescription.Text;
if (ddlListModerators.SelectedValue == GetLocalizedString("Text.SelectModerator"))
{
item.ModeratorAddress = null;
}
else
{
item.ModeratorAddress = ddlListModerators.SelectedValue;
}
item.ReplyToMode = chkReplyToList.Checked ? ReplyTo.RepliesToList : ReplyTo.RepliesToSender;
item.PostingMode = (PostingMode)Enum.Parse(typeof(PostingMode), ddlPostingMode.SelectedValue, true);
item.Password = txtPassword.Text;
item.RequirePassword = chkPasswordEnabled.Checked;
item.SubjectPrefix = txtSubjectPrefix.Text;
item.EnableSubjectPrefix = chkSubjectPrefixEnabled.Checked;
item.MaxMessageSize = Int32.Parse(txtMaxMessageSize.Text);
item.MaxRecipientsPerMessage = Int32.Parse(txtMaxRecipients.Text);
item.Members = mailEditItems.Items;
ctrl = null;
}
示例13: SaveItem
public void SaveItem(MailList item)
{
item.Description = txtDescription.Text;
item.ModeratorAddress = ddlListModerators.SelectedValue;
item.MembersSource = (IceWarpListMembersSource)Enum.Parse(typeof (IceWarpListMembersSource), ddlMembersSource.SelectedValue);
item.Members = mailEditItems.Items;
item.FromHeader = (IceWarpListFromAndReplyToHeader)Enum.Parse(typeof (IceWarpListFromAndReplyToHeader), ddlFromHeaderAction.SelectedValue);
item.ReplyToHeader = (IceWarpListFromAndReplyToHeader)Enum.Parse(typeof (IceWarpListFromAndReplyToHeader), ddlReplyToHeaderAction.SelectedValue);
item.ListFromAddress = txtFromHeaderValue.Text;
item.ListReplyToAddress = txtReplyToHeaderValue.Text;
item.SubjectPrefix = txtSubjectPrefix.Text;
item.Originator = (IceWarpListOriginator)Enum.Parse(typeof (IceWarpListOriginator), ddllblOriginator.SelectedValue);
item.PostingMode = (PostingMode)Enum.Parse(typeof (PostingMode), ddlPostingMode.SelectedValue);
item.PasswordProtection = (PasswordProtection)Enum.Parse(typeof (PasswordProtection), ddlPasswordProtection.SelectedValue);
item.Password = txtPassword.Text;
item.DefaultRights = (IceWarpListDefaultRights)Enum.Parse(typeof (IceWarpListDefaultRights), ddlDefaultRights.SelectedValue);
item.MaxMessageSize = Convert.ToInt32(txtMaxMessageSize.Text);
item.MaxMembers = Convert.ToInt32(txtMaxMembers.Text);
item.SetReceipientsToToHeader = chkSetRecipientToToHeader.Checked;
item.SendToSender = chkSendToSender.Checked;
item.DigestMode = chkDigestMailingList.Checked;
item.MaxMessagesPerMinute = Convert.ToInt32(txtMaxMessagesPerMinute.Text);
item.SendSubscribe = chkSendSubscribe.Checked;
item.SendUnsubscribe = chkSendUnSubscribe.Checked;
item.ConfirmSubscription = (IceWarpListConfirmSubscription)Enum.Parse(typeof (IceWarpListConfirmSubscription), ddlConfirmSubscription.SelectedValue);
item.CommandsInSubject = chkCommandInSubject.Checked;
item.DisableSubscribecommand = !chkEnableSubscribe.Checked;
item.AllowUnsubscribe = chkEnableUnsubscribe.Checked;
item.DisableListcommand = !chkEnableLists.Checked;
item.DisableWhichCommand = !chkEnableWhich.Checked;
item.DisableReviewCommand = !chkEnableReview.Checked;
item.DisableVacationCommand = !chkEnableVacation.Checked;
item.Moderated = chkModerated.Checked;
item.CommandPassword = txtCommandPassword.Text;
item.SuppressCommandResponses = chkSuppressCommandResponses.Checked;
}
示例14: BindItem
public void BindItem(MailList item)
{
mailEditItems.Items = item.Members;
}
示例15: SaveItem
public void SaveItem(MailList item)
{
item.Members = mailEditItems.Items;
}