public App() { this.InitializeComponent(); var proxy = new TrackViewModelsProxy(); var allTracksViewModel = new AllTracksViewModel(proxy.TrackViewModelsChangeSets); var tracksSubsetView = new TracksSubsetView() { DataContext = allTracksViewModel }; tracksSubsetView.ShowDialog(); }
public LibraryViewModel(TrackViewModelsProxy trackViewMolesProxy) { this._trackViewMolesProxy = trackViewMolesProxy ?? throw new ArgumentNullException(nameof(trackViewMolesProxy)); this.AllTracksViewModel = new AllTracksViewModel(this._trackViewMolesProxy.TrackViewModelsChangeSets); }