Esempio n. 1
0
        public static bool?OpenInfoSearchDialog(string word = null, bool NotToggle = false)
        {
            try
            {
                word = TrimKeywordCheckToggled(word, Settings.Instance.MenuSet.InfoSearchTitle_Trim, NotToggle);

                var dlg = new InfoSearchWindow();
                dlg.SetSearchWord(word);
                dlg.Show();
                return(true);
            }
            catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); }
            return(null);
        }
Esempio n. 2
0
        private void mc_ReSearch(object sender, ExecutedRoutedEventArgs e)
        {
            if (listView_result.SelectedItem == null)
            {
                return;
            }
            //
            string word = MenuUtil.TrimEpgKeyword(lstCtrl.SelectSingleItem().EventName, CmdExeUtil.IsKeyGesture(e));

            if (e.Command == EpgCmds.ReSearch)
            {
                TextBox_SearchWord.Text = word;
                mc_Search(sender, e);
            }
            else
            {
                WriteWindowSaveData();

                var dlg = new InfoSearchWindow();
                dlg.SetSearchWord(word);
                dlg.Show();
            }
        }