public void AddMixedRule(string localID, XYKernel.OS.Common.Models.Mixed.Rule.Rule model) { if (MixedAlgoes.ContainsKey(localID)) { MixedRules[localID] = model; } else { MixedRules.Add(localID, model); } }
public XYKernel.OS.Common.Models.Mixed.Rule.Rule GetMixedRule(string localID) { if (MixedRules.ContainsKey(localID)) { return(MixedRules[localID]); } else { var rule = new XYKernel.OS.Common.Models.Mixed.Rule.Rule(); MixedRules.Add(localID, rule); return(rule); } }