예제 #1
0
        private void EventRemove(Instance inst)
        {
            var eArg = new InstanceCollectionEventArgs()
            {
                Reference = inst,
                Type      = InstanceCollectionEventType.RemoveObject
            };

            OnObjectRemove?.Invoke(eArg);
            OnGeneralizedEvent?.Invoke(eArg);
        }
예제 #2
0
        private void EventAccess(Instance inst)
        {
            var eArg = new InstanceCollectionEventArgs()
            {
                Reference = inst,
                Type      = InstanceCollectionEventType.AccessedObject
            };

            OnObjectAccess?.Invoke(eArg);
            OnGeneralizedEvent?.Invoke(eArg);
        }
예제 #3
0
        private void EventAdd(Instance inst)
        {
            if (!_allowEvent)
            {
                return;
            }
            var eArg = new InstanceCollectionEventArgs()
            {
                Reference = inst,
                Type      = InstanceCollectionEventType.AddObject
            };

            OnObjectAdd?.Invoke(eArg);
            OnGeneralizedEvent?.Invoke(eArg);
        }