Example #1
0
 protected virtual void OnSelectedItemSynchronizationMessage(SelectedItemSynchronizationMessage <TEntity> m)
 {
     if (m.Entity == null)
     {
         Entity = null;
     }
     else
     {
         OnParameterChanged(Repository.GetPrimaryKey(m.Entity));
     }
 }
Example #2
0
 void OnSelectedItemSynchronizationMessage(SelectedItemSynchronizationMessage <TEntity> message)
 {
     SelectedEntity = message.Entity == null ? null : FindEntity(GetPrimaryKey(message.Entity));
 }