//on picture updaed private void OnPictureUpdated(PictureDetailViewModel source, PicturePost post) { var postInList = Posts.Single(c => c.ID == post.ID); postInList.ID = post.ID; postInList.PictureTitle = post.PictureTitle; postInList.PictureCategory = post.PictureCategory; postInList.PictureRating = post.PictureRating; postInList.PicturePath = post.PicturePath; postInList.PictureLocation = post.PictureLocation; postInList.PictureTime = post.PictureTime; }
//when a picture gets added private void OnPictureAdded(PictureDetailViewModel source, PicturePost post) { Posts.Add(new PicturesViewModel(post)); }