Exemplo n.º 1
0
        void ObjectSpaceOnObjectDeleting(object sender, ObjectsManipulatingEventArgs objectsManipulatingEventArgs)
        {
            IEnumerable <TObject> objects = objectsManipulatingEventArgs.Objects.OfType <TObject>();

            if (objects.Any())
            {
                OnDeleting(new ObjectsManipulatingEventArgs <TObject>(objects));
            }
        }
Exemplo n.º 2
0
        protected virtual void OnDeleting(ObjectsManipulatingEventArgs <TObject> e)
        {
            EventHandler <ObjectsManipulatingEventArgs <TObject> > handler = ObjectDeleting;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 3
0
        void ObjectSpaceOnObjectDeleted(object sender, ObjectsManipulatingEventArgs objectsManipulatingEventArgs)
        {
            var objects = objectsManipulatingEventArgs.Objects.OfType <TObject>().ToArray();

            if (objects.Any())
            {
                OnDeleted(new ObjectsManipulatingEventArgs <TObject>(objects));
            }
        }
Exemplo n.º 4
0
        protected virtual void OnDeleting(ObjectsManipulatingEventArgs <TObject> e)
        {
            EventHandler <ObjectsManipulatingEventArgs <TObject> > handler = ObjectDeleting;

            handler?.Invoke(this, e);
        }