Esempio n. 1
0
        /// <summary>
        /// Called whenever (and ONLY whenever) the user has either
        /// 1. selected an item from the result set
        /// 2. decided not to select an item from the result set
        /// 3. cleared the currently selected item
        /// </summary>
        private void OnUserEndedSearchEvent()
        {
            if (SearchTimer != null)
            {
                SearchTimer.Stop();
                //setting to null so that when a new search starts, we grab fresh values for the time interval
                SearchTimer = null;
            }

            if (SearchProvider != null)
            {
                SearchProvider.CancelAllSearches();
            }

            ShowResults           = false;
            noResultsPopup.IsOpen = false;
        }