當前位置: 首頁>>代碼示例>>C#>>正文


C# Mail.MailList類代碼示例

本文整理匯總了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;
        }
開發者ID:jordan49,項目名稱:websitepanel,代碼行數:26,代碼來源:SmarterMail_EditList.ascx.cs

示例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;
  		}
開發者ID:lwhitelock,項目名稱:Websitepanel,代碼行數:7,代碼來源:hMailServer43_EditList.ascx.cs

示例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;
		}
開發者ID:jordan49,項目名稱:websitepanel,代碼行數:7,代碼來源:ArgoMail_EditList.ascx.cs

示例4: BindItem

		public void BindItem(MailList item)
		{
			Utils.SelectListItem(ddlReplyTo, item.ReplyToMode);
			Utils.SelectListItem(ddlPostingMode, item.PostingMode);

			mailEditItems.Items = item.Members;
		}
開發者ID:jordan49,項目名稱:websitepanel,代碼行數:7,代碼來源:ArgoMail_EditList.ascx.cs

示例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();
		}
開發者ID:lwhitelock,項目名稱:Websitepanel,代碼行數:8,代碼來源:hMailServer43_EditList.ascx.cs

示例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;
		}
開發者ID:jordan49,項目名稱:websitepanel,代碼行數:10,代碼來源:MDaemon_EditList.ascx.cs

示例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;
		}
開發者ID:jordan49,項目名稱:websitepanel,代碼行數:13,代碼來源:MDaemon_EditList.ascx.cs

示例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);
 }
開發者ID:lwhitelock,項目名稱:Websitepanel,代碼行數:15,代碼來源:Merak_EditList.ascx.cs

示例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);
        }
開發者ID:lwhitelock,項目名稱:Websitepanel,代碼行數:44,代碼來源:IceWarp_EditList.ascx.cs

示例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;
   }
開發者ID:lwhitelock,項目名稱:Websitepanel,代碼行數:42,代碼來源:MailEnable_EditList.ascx.cs

示例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 = "";
     }
 }
開發者ID:lwhitelock,項目名稱:Websitepanel,代碼行數:21,代碼來源:Merak_EditList.ascx.cs

示例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;
		}
開發者ID:jordan49,項目名稱:websitepanel,代碼行數:23,代碼來源:SmarterMail50_EditList.ascx.cs

示例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;
 }
開發者ID:jonwbstr,項目名稱:Websitepanel,代碼行數:36,代碼來源:IceWarp_EditList.ascx.cs

示例14: BindItem

		public void BindItem(MailList item)
		{
			mailEditItems.Items = item.Members;
		}
開發者ID:lwhitelock,項目名稱:Websitepanel,代碼行數:4,代碼來源:AbilityMailServer_EditList.ascx.cs

示例15: SaveItem

		public void SaveItem(MailList item)
		{
			item.Members = mailEditItems.Items;
		}
開發者ID:lwhitelock,項目名稱:Websitepanel,代碼行數:4,代碼來源:AbilityMailServer_EditList.ascx.cs


注:本文中的WebsitePanel.Providers.Mail.MailList類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。