Skip to content

Commit

Permalink
Cleanup: Use auto-property.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-azarchs committed Feb 9, 2019
1 parent 2f9bc4d commit da71034
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions PhotoTagger/MultiPhotoEdit.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ public MultiPhotoEdit() {
InitializeComponent();
}

private readonly MultiPhoto photos = new MultiPhoto() {
public MultiPhoto Photos {
get;
} = new MultiPhoto() {
PhotoSet = new ReadOnlyObservableCollection<Photo>(
new ObservableCollection<Photo>())
};

public MultiPhoto Photos {
get {
return this.photos;
}
}

public ReadOnlyObservableCollection<Photo> PhotoSet {
get {
return (ReadOnlyObservableCollection<Photo>)GetValue(
Expand Down

0 comments on commit da71034

Please sign in to comment.