Exemple #1
0
 private void SelectedPhoto(SelectedMessage message)
 {
     Detail = photoRepository.FindById(message.Id);
     AddNewObject.photoDetailModel = Detail;
     ThingsOnPhoto.Clear();
     PersonsOnPhoto.Clear();
     foreach (var objectOnPhotoModel in Detail.ObjectsOnPhoto)
     {
         if (objectOnPhotoModel.Object.GetType() == typeof(ThingEntity))
         {
             ThingsOnPhoto.Add(objectOnPhotoModel);
         }
         else
         {
             PersonsOnPhoto.Add(objectOnPhotoModel);
         }
     }
 }
Exemple #2
0
 public void OnLoad()
 {
     ThingsOnPhoto.Clear();
     PersonsOnPhoto.Clear();
 }