public void SetData(InfluenceRuleDTO dto) { RuleName = dto.RuleName; Target = (Name)dto.Target; Value = dto.Value; Conditions = new ConditionSet(dto.Conditions); }
public void AddOrUpdateInfluenceRule(InfluenceRuleDTO dto) { if (RuleList.Find(x => x.RuleName == dto.RuleName) != null) { RuleList.Remove(RuleList.Find(x => x.RuleName == dto.RuleName)); RuleList.Add(dto); } else RuleList.Add(dto); // SocialExchanges.DataSource = _cifAsset.m_SocialExchanges.ToList(); // SocialExchanges.Refresh(); _parent.SetModified(); }
public InfluenceRule(InfluenceRuleDTO dto) : this() { SetData(dto); }