private void UpdateViewModelImpl() { Commits.ForEach(commit => commit.WindowWidth = Width); CommitDetailsViewModel.NotifyAll(); NotifyAll(); VirtualItemsSource.DataChanged(width); UpdateStatusIndicators(); }
void RefreshSelectedBranch() { BranchViewModel = RepositoriesViewModel.SelectedBranch; if (BranchViewModel?.MergeRequest == null) { Commits = Enumerable.Empty <CommitViewModel>(); return; } var mergeRequest = BranchViewModel.MergeRequest; Commits = mergeRequest.Commits; Commits.ForEach(x => x.UpdateBuilds()); }
void AddToQueue(Commits commits) { commits.ForEach(_ => AddToQueue(_)); }