예제 #1
0
        private void UpdateViewModelImpl()
        {
            Commits.ForEach(commit => commit.WindowWidth = Width);
            CommitDetailsViewModel.NotifyAll();
            NotifyAll();

            VirtualItemsSource.DataChanged(width);

            UpdateStatusIndicators();
        }
예제 #2
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);
        }