private async Task Search(DateTime startLocalTime, DateTime endLocalTime, bool myOwnBookmarksOnly, string searchString)
        {
            lsvBookmarks.Items.Clear();
            lblMessage.Text = $"Total Bookmarks found:";

            var items = new Item[] { selectedCameraItem };
            var kinds = new Guid[] { Kind.Camera, Kind.Microphone, Kind.Speaker };

            var searcher  = new BookmarksFinder(items, kinds, myOwnBookmarksOnly, searchString);
            var bookmarks = await searcher.Search(startLocalTime, endLocalTime, bookmarksCount);

            AddToListView(bookmarks);
            OpenALPRBackgroundPlugin.Bookmarks = bookmarks;
        }
Beispiel #2
0
        private async Task Search(DateTime startLocalTime, DateTime endLocalTime, bool myOwnBookmarksOnly, bool allCamerasChecked, string searchString)
        {
            lsvBookmarks.Items.Clear();
            lblMessage.Text = $"Total Bookmarks found:";

            Item[] items = new Item[] { selectedCameraItem };
            Guid[] kinds = new Guid[] { Kind.Camera, Kind.Microphone, Kind.Speaker };

            BookmarksFinder searcher = new BookmarksFinder(items, kinds, myOwnBookmarksOnly, searchString);

            Bookmark[] bookmarks = await searcher.Search(startLocalTime, endLocalTime, allCamerasChecked, bookmarksCount);

            bookmarks = bookmarks.OrderByDescending(b => b.TimeTrigged).ToArray();

            AddToListView(bookmarks);
            OpenALPRBackgroundPlugin.Bookmarks = bookmarks;
        }