Ejemplo n.º 1
0
        /// <summary> Fires Changed event if some conditions are met </summary>
        public void FireChange(BGCurveChangedArgs change, bool ignoreEventsGrouping = false)
        {
            if (eventMode == EventModeEnum.NoEvents || Changed == null) return;

            if (transactionLevel > 0 || (eventMode != EventModeEnum.Immediate && !ignoreEventsGrouping))
            {
                changed = true;
                if (UseEventsArgs && !ChangeList.Contains(change)) ChangeList.Add(change);
                return;
            }

            Changed(this, UseEventsArgs ? change : null);
        }