public InboxRule(InboxRule rule) : base(rule) { this.Rule = rule; base.DescriptionObject = rule.Description; base.ConditionDescriptions = base.DescriptionObject.ConditionDescriptions.ToArray(); base.ActionDescriptions = base.DescriptionObject.ActionDescriptions.ToArray(); base.ExceptionDescriptions = base.DescriptionObject.ExceptionDescriptions.ToArray(); }
public RuleRow(InboxRule rule) : base(((InboxRuleId)rule.Identity).ToIdentity(), rule) { this.Name = rule.Name; this.Priority = rule.Priority; this.Enabled = rule.Enabled; this.CaptionText = Strings.EditRuleCaption(rule.Name); this.Supported = rule.SupportedByTask; }
public static Identity ToIdentity(this AggregationSubscriptionIdentity[] subscriptionIds, InboxRule ruleObj) { IList <string> list = null; if (!subscriptionIds.IsNullOrEmpty()) { list = ruleObj.GetSubscriptionEmailAddresses((IList <AggregationSubscriptionIdentity>)subscriptionIds); } if (list != null && list.Count > 0) { string[] value = Array.ConvertAll <AggregationSubscriptionIdentity, string>(subscriptionIds, (AggregationSubscriptionIdentity x) => x.ToString()); return(new Identity(string.Join(",", value), string.Join(",", list.ToArray <string>()))); } return(null); }