Exemple #1
0
 public void Bind(IOpeningCondition oc, IClosingCondition cc)
 {
     Bind(oc);
     if (OToCs.ContainsKey(oc) == false)
     {
         OToCs.Add(oc, new List <IClosingCondition>());
     }
     if (!OToCs[oc].Contains(cc))
     {
         OToCs[oc].Add(cc);
     }
 }
Exemple #2
0
        public void Bind(IOpeningCondition oc, IClosingCondition cc, ISubject window, ISummary summary)
        {
            Bind(oc, cc, window);
            var key = Tuple.Create(oc, cc, window);

            if (OCSToSs.ContainsKey(key) == false)
            {
                OCSToSs.Add(key, new List <ISummary>());
            }
            if (!OCSToSs[key].Contains(summary))
            {
                OCSToSs[key].Add(summary);
            }
        }