Exemplo n.º 1
0
 /// <summary>
 /// This function will adjust the SelectedHosts in the SearchViewModel
 /// Affecting search results globally
 /// </summary>
 /// <param name="obj"></param>
 private void SetFilterHosts(object obj)
 {
     if (OnChecked)
     {
         pmSearchViewModel.SelectedHosts.Add(obj as string);
     }
     else
     {
         pmSearchViewModel.SelectedHosts.Remove(obj as string);
     }
     pmSearchViewModel.SearchAndUpdateResults();
     return;
 }
 /// <summary>
 /// This function will adjust the SelectedHosts in the SearchViewModel
 /// Affecting search results globally
 /// </summary>
 /// <param name="obj"></param>
 private void SetFilterHosts(object obj)
 {
     if (OnChecked)
     {
         pmSearchViewModel.SelectedHosts.Add(obj as string);
     }
     else
     {
         pmSearchViewModel.SelectedHosts.Remove(obj as string);
     }
     // Send filter event with what host filter user using
     Dynamo.Logging.Analytics.TrackEvent(
         Actions.Filter,
         Categories.PackageManagerOperations,
         string.Join(",", pmSearchViewModel.SelectedHosts));
     pmSearchViewModel.SearchAndUpdateResults();
     return;
 }