Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
        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);
        }