Beispiel #1
0
 private void DecreaseConditionCountWorkGroup(WorkGroupCondition condition)
 {
     WorkGroupControl.ConditionCount conditionCount = this._conditionCountList[condition] as WorkGroupControl.ConditionCount;
     conditionCount.WorkGroupCount--;
     if (conditionCount.WorkGroupCount == 0)
     {
         this.AddUnbound(condition);
     }
 }
Beispiel #2
0
 private void IncreaseConditionCountWorkGroup(WorkGroupCondition condition)
 {
     WorkGroupControl.ConditionCount conditionCount = this._conditionCountList[condition] as WorkGroupControl.ConditionCount;
     if (conditionCount == null)
     {
         conditionCount = new WorkGroupControl.ConditionCount();
         this._conditionCountList.Add(condition, conditionCount);
     }
     conditionCount.WorkGroupCount++;
     if (conditionCount.WorkGroupCount == 1)
     {
         this.RemoveUnbound(condition);
     }
 }