Sevral bugs ar efixed, like braodcast spamming

This commit is contained in:
2017-06-27 21:59:20 +02:00
parent 51d1119776
commit ebb86f46e6
1303 changed files with 781 additions and 87 deletions

View File

@ -75,7 +75,7 @@ namespace BuechermarktClient
list = MainWindow.BookTypeCollection.FindSync((b) => true).ToList();
not = false;
}
catch (Exception e)
catch (MongoExecutionTimeoutException)
{
Thread.Sleep(200);
}
@ -84,11 +84,25 @@ namespace BuechermarktClient
var show = new List<BookType>();
if(SearchField != null && SearchField != String.Empty)
{
foreach(var e in list)
if (SearchField == "%d%")
{
if (e.ISBN.ToLower().Contains(SearchField.ToLower()) || e.Name.ToLower().Contains(SearchField.ToLower()))
foreach (var e in list)
{
show.Add(e);
foreach (var e2 in list)
{
if (e.ID == e2.ID) continue;
if (e.ISBN == e2.ISBN) show.Add(e);
}
}
}
else
{
foreach (var e in list)
{
if (e.ISBN.ToLower().Contains(SearchField.ToLower()) || e.Name.ToLower().Contains(SearchField.ToLower()))
{
show.Add(e);
}
}
}
} else {