public List <SmallItem> StoreCleanItems()
        {
            Thread.Sleep(storingTime * ModelFacade.MinuteToMilisecondsMultiplier);
            List <SmallItem> i = StoredItems;

            StoredItems.Clear();
            return(i);
        }
        private void Clear_Click(object sender, RoutedEventArgs e)
        {
            StoredItems.Clear();
            foreach (GridItem item in _allItems)
            {
                StoredItems.Add(item);
            }

            _isSearching = false;
        }
 private void Search_Click(object sender, RoutedEventArgs e)
 {
     StoredItems.Clear();
     foreach (GridItem item in _allItems)
     {
         if (item.DocumentName.Contains(QueryBox.Text) || item.Data.Contains(QueryBox.Text))
         {
             StoredItems.Add(item);
         }
     }
     _isSearching = true;
 }