public void AddMixedAlgoRule(string localID, XYKernel.OS.Common.Models.Mixed.AlgoRule.AlgoRule model) { if (MixedAlgoes.ContainsKey(localID)) { MixedAlgoes[localID] = model; } else { MixedAlgoes.Add(localID, model); } }
public XYKernel.OS.Common.Models.Mixed.AlgoRule.AlgoRule GetMixedAlgoRule(string localID) { if (MixedAlgoes.ContainsKey(localID)) { return(MixedAlgoes[localID]); } else { var algoRule = new XYKernel.OS.Common.Models.Mixed.AlgoRule.AlgoRule(); MixedAlgoes.Add(localID, algoRule); return(algoRule); } }