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); } } }
public void OnLoad() { ThingsOnPhoto.Clear(); PersonsOnPhoto.Clear(); }