Пример #1
0
        public virtual void RemoveExpectedResult(ExpectedResult result)
        {
            if (result == null || !ExpectedResults.Contains(result))
            {
                return;
            }

            ExpectedResults.Remove(result);
            result.ParentEffect = null;
            OnChanged(new CMEntitiesEventArgs("ExpectedResults", result, null));
        }
Пример #2
0
        public virtual void AddExpectedResult(ExpectedResult result)
        {
            if (result == null || ExpectedResults.Contains(result))
            {
                return;
            }

            ExpectedResults.Add(result);
            result.ParentEffect = this;
            OnChanged(new CMEntitiesEventArgs("ExpectedResults", null, result));
        }