private void AddPicture(Picture picture) { // Remove placeholder if (Pictures.Count == 1) { if (Pictures.First().FileName.Equals("pictureDefault")) { Pictures.RemoveAt(0); } } // persist if (picture.ImageSource != null) { // Filename from Event ID and picture number // Pattern for Event 1, 2nd Picture: {1}2.jpg var idPatternForFileWithoutFileExtension = SelectedEvent.IdForFileSystem + Pictures.Count; _pictureSaver.SavePictureToDisk(picture.ImageSource, idPatternForFileWithoutFileExtension); } // add to view Pictures.Insert(0, picture); }