Beispiel #1
0
        protected void AddCondition(ResDT_ConditionInfo InCondConfig)
        {
            StarCondition item = ConditionFactory.Create((int)InCondConfig.dwType) as StarCondition;

            DebugHelper.Assert(item != null);
            if (item != null)
            {
                item.OnStarConditionChanged += new OnStarConditionChangedDelegate(this.OnConditionChanged);
                item.Initialize(InCondConfig);
                this.Conditions.Add(item);
            }
        }
Beispiel #2
0
        protected void AddCondition(ResDT_ConditionInfo InCondConfig)
        {
            StarCondition starCondition = StarEvaluation.ConditionFactory.Create((int)InCondConfig.dwType) as StarCondition;

            DebugHelper.Assert(starCondition != null);
            if (starCondition != null)
            {
                starCondition.OnStarConditionChanged += new OnStarConditionChangedDelegate(this.OnConditionChanged);
                starCondition.Initialize(InCondConfig);
                this.Conditions.Add(starCondition);
            }
        }