Exemple #1
0
        private void FilterBlobs()
        {
            FilteredBlobs.Clear();

            if (string.IsNullOrEmpty(FilterText))
            {
                FilteredBlobs.AddAll(Blobs);
            }
            else
            {
                FilteredBlobs.AddAll(Blobs.Where(b => b.Name.IndexOf(FilterText, StringComparison.OrdinalIgnoreCase) != -1).ToList());
            }
        }
Exemple #2
0
 private void Process(FolderUpdatedMessage message)
 {
     if (message.ReplacedBlobs.Count > 0)
     {
         foreach (KeyValuePair <Blob, Blob> otn in message.ReplacedBlobs)
         {
             int idx = FilteredBlobs.IndexOf(otn.Key);
             if (idx != -1)
             {
                 FilteredBlobs.RemoveAt(idx);
                 FilteredBlobs.Insert(idx, otn.Value);
             }
         }
     }
     else
     {
         RefreshBlobsAsync().Forget();
     }
 }