void IEntityEvents.OnSaved(Entity entity, SavedEventArgs args)
 {
     if (Saved != null)
     {
         Saved((T)entity, args);
     }
 }
Beispiel #2
0
        internal void OnSaved(Entity entity, SavedEventArgs args)
        {
            AssertAllowed(entity.GetType(), inUserInterface: false);

            IEntityEvents ee = entityEvents.TryGetC(entity.GetType());

            if (ee != null)
            {
                ee.OnSaved(entity, args);
            }

            entityEventsGlobal.OnSaved(entity, args);
        }
Beispiel #3
0
 void IEntityEvents.OnSaved(Entity entity, SavedEventArgs args)
 {
     Saved?.Invoke((T)entity, args);
 }