예제 #1
0
 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);
     }
 }
예제 #2
0
        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);
            }
        }