private void OpenLinkButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     if (LinkedUrl != string.Empty)
     {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Background, new Action(
                                    delegate()
         {
             Externel.Shell shell = new Externel.Shell();
             shell.DoOpenWebBrowser(LinkedUrl);
         })
                                );
     }
 }
        private void _DoQuery(string text, InputQueryType queryType)
        {
            if (text == string.Empty)
            {
                return;
            }
            switch (queryType)
            {
                case InputQueryType.Text:
                case InputQueryType.FileName:
                    {
                        InputQuery query = new InputQuery(text);
                        query.QueryType = InputQueryType.Text;

                        _lastQueryText = text;
                        AddQueryHistory(text);

                        this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Background, new Action(
                            delegate()
                            {
                                _pipeline.OnInputTextReady(query);
                            })
                        );

                        break;
                    }
                case InputQueryType.FtpUri:
                case InputQueryType.HttpUri:
                    {
                        Shell shell = new Shell();
                        shell.DoOpenWebBrowser(text);
                        break;
                    }
                default:
                    break;
            }
        }
 private void OpenSearchEngineResult(object sender, int index)
 {
     SearchEngineResult result = _resultHandler.GetSearchEngineResult(sender);
     if (result != null)
     {
         if (0 <= index && index < result.Results.Count)
         {
             string uri = string.Format("{0}", result.Results[index].Url);
             Shell shell = new Shell();
             shell.DoOpenWebBrowser(uri);
         }
         else if (index == -1)
         {
             string uri = string.Format("{0}", result.SearchUrl);
             Shell shell = new Shell();
             shell.DoOpenWebBrowser(uri);
         }
     }
 }
 private void DictcnOutputListBox_MouseDoubleClick( object sender, MouseButtonEventArgs e )
 {
     if ( e.LeftButton == MouseButtonState.Pressed )
     {
         int index = DictcnOutputListBox.SelectedIndex;
         DictResult result = _resultHandler.GetDictcnResult(sender);
         //SearchEngineResult result = _resultHandler.GetSearchEngineResult( sender );
         if ( result != null && ((index & 1 )==0))
         {
             string uri = string.Format( "{0}", result.SearchUrl );
             Shell shell = new Shell();
             shell.DoOpenWebBrowser( uri );
         }
     }
 }
 private void DetailedOpenLinkButton_Click(object sender, RoutedEventArgs e)
 {
     string uri = string.Format("{0}", _selectedItemUri);
     Shell shell = new Shell();
     if (_selectedItemUri != null && _selectedItemUri != string.Empty)
     {
         shell.DoOpenWebBrowser(uri);
     }
 }
 private void OpenLinkButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     if (LinkedUrl != string.Empty)
     {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Background, new Action(
             delegate()
             {
                 Externel.Shell shell = new Externel.Shell();
                 shell.DoOpenWebBrowser(LinkedUrl);
             })
         );
     }
 }