Пример #1
0
        private void UpdateViewModelImpl()
        {
            Commits.ForEach(commit => commit.WindowWidth = Width);
            CommitDetailsViewModel.NotifyAll();
            NotifyAll();

            VirtualItemsSource.DataChanged(width);

            UpdateStatusIndicators();
        }
Пример #2
0
        private void Clicked(CommitViewModel commitViewModel)
        {
            if (commitViewModel.IsMergePoint)
            {
                // User clicked on a merge point (toggle between expanded and collapsed)
                int rowsChange = viewModelService.ToggleMergePoint(this, commitViewModel.Commit);

                ScrollRows(rowsChange);
                VirtualItemsSource.DataChanged(width);
            }
        }
Пример #3
0
        private async void FilterTrigger(object sender, EventArgs e)
        {
            filterTriggerTimer.Stop();
            string filterText = settingFilterText;

            FilterText = filterText;

            Log.Debug($"Filter triggered for: {FilterText}");

            CommitPosition commitPosition = TryGetSelectedCommitPosition();

            using (progress.ShowBusy())
            {
                await viewModelService.SetFilterAsync(this, filterText);
            }

            TrySetSelectedCommitPosition(commitPosition, true);
            CommitDetailsViewModel.NotifyAll();

            VirtualItemsSource.DataChanged(width);
        }