void OnMessage(EntityMessage <TEntity, TPrimaryKey> message) { if (!owner.IsLoaded) { return; } switch (message.MessageType) { case EntityMessageType.Added: OnEntityAdded(message.PrimaryKey); break; case EntityMessageType.Changed: OnEntityChanged(message.PrimaryKey); break; case EntityMessageType.Deleted: OnEntityDeleted(message.PrimaryKey); break; } }
void OnMessage(EntityMessage <TEntity, TPrimaryKey> message) { Refresh(); }