Пример #1
0
 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);
     }
 }
Пример #2
0
 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);
     }
 }