private void searchBox1_SearchTextChanged(object sender, SearchBox.SearchEventArgs searchEventArgs)
        {
            if (_targetFilterCondition == null || _targetFilterCondition.FilterText == searchEventArgs.SearchText)
            {
                return;
            }

            _targetFilterCondition.FilterText = searchEventArgs.SearchText;
            OnComparisonMethodChanged(sender, searchEventArgs);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// What to do when the search box is clicked.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void SearchBox_SearchExecutedAsync(object sender, SearchBox.SearchEventArgs e)
        {
            if (string.IsNullOrWhiteSpace(App.Settings.ProfileSettings.SearchBarCommand))
            {
                App.Conveyor.EchoLog("No search bar command has been set.  Open the settings and enter a command into the 'SearchBarCommand' property of the profile settings.", LogType.Information);
                return;
            }

            await App.MainWindow.Interp.Send($"{App.Settings.ProfileSettings.SearchBarCommand}{e.SearchText}");
        }