public override void OnFilterChanged(ItemFilter?previousFilter, ItemFilter currentFilter)
        {
            base.OnFilterChanged(previousFilter, currentFilter);

            // clear selection if filter is changed from Consolidate/UpdateAvailable
            // to Browse/Install.
            if ((previousFilter == ItemFilter.Consolidate || previousFilter == ItemFilter.UpdatesAvailable) &&
                (_filter == ItemFilter.All || _filter == ItemFilter.Installed))
            {
                foreach (var project in _projects)
                {
                    project.IsSelected = false;
                }
            }
        }
Exemplo n.º 2
0
 public virtual void OnFilterChanged(ItemFilter?previousFilter, ItemFilter currentFilter)
 {
     _filter = currentFilter;
 }
Exemplo n.º 3
0
 public FilterChangedEventArgs(ItemFilter?previousFilter)
 {
     PreviousFilter = previousFilter;
 }