Exemplo n.º 1
0
 public void LateSetup()
 {
     // Now that plugin initializatin code is moved out of Startup into an asynchronous code, need to make sure it is done before trying to reference. Should really have some feedback on the UI.
     if (listCollectionView == null)
     {
         listCollectionView = new ListCollectionView(addIn.foldersCollection);
         var sortHelper = new SortHelper(textBox);
         listCollectionView.Filter     = o => sortHelper.Filter(o);
         listCollectionView.CustomSort = sortHelper;
         listBox.ItemsSource           = listCollectionView;
     }
 }