From da7103478ac378cc64378dda4e92b369901eaf23 Mon Sep 17 00:00:00 2001 From: Adam Azarchs Date: Fri, 8 Feb 2019 19:56:25 -0800 Subject: [PATCH] Cleanup: Use auto-property. --- PhotoTagger/MultiPhotoEdit.xaml.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/PhotoTagger/MultiPhotoEdit.xaml.cs b/PhotoTagger/MultiPhotoEdit.xaml.cs index dbbffac..2a12e7b 100644 --- a/PhotoTagger/MultiPhotoEdit.xaml.cs +++ b/PhotoTagger/MultiPhotoEdit.xaml.cs @@ -12,17 +12,13 @@ public MultiPhotoEdit() { InitializeComponent(); } - private readonly MultiPhoto photos = new MultiPhoto() { + public MultiPhoto Photos { + get; + } = new MultiPhoto() { PhotoSet = new ReadOnlyObservableCollection( new ObservableCollection()) }; - public MultiPhoto Photos { - get { - return this.photos; - } - } - public ReadOnlyObservableCollection PhotoSet { get { return (ReadOnlyObservableCollection)GetValue(