Skip to content

Commit

Permalink
Use ObservableCollection again
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKert committed Apr 27, 2019
1 parent 6629963 commit f78baaf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/BuildVision/Services/BuildInformationProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ public class BuildInformationProvider : IBuildInformationProvider
private int _currentQueuePosOfBuildingProject = 0;

public IBuildInformationModel BuildInformationModel { get; } = new BuildInformationModel();
public ObservableRangeCollection<IProjectItem> Projects { get; } = new ObservableRangeCollection<IProjectItem>();

ObservableCollection<IProjectItem> IBuildInformationProvider.Projects => throw new NotImplementedException();
public ObservableCollection<IProjectItem> Projects { get; } = new ObservableRangeCollection<IProjectItem>();

[ImportingConstructor]
public BuildInformationProvider(
Expand Down Expand Up @@ -77,7 +75,7 @@ public BuildInformationProvider(
public void ReloadCurrentProjects()
{
Projects.Clear();
Projects.AddRange(_solutionProvider.GetProjects());
((ObservableRangeCollection< IProjectItem>)Projects).AddRange(_solutionProvider.GetProjects());
}

public void ResetCurrentProjects()
Expand Down

0 comments on commit f78baaf

Please sign in to comment.