private void OnEditSearchSourceClick(object sender, RoutedEventArgs e)
        {
            if (_settings.SelectedSearchSource != null)
            {
                var webSearch = new SearchSourceSettingWindow
                                (
                    _settings.SearchSources, _context, _settings.SelectedSearchSource
                                );

                webSearch.ShowDialog();
            }
        }
Esempio n. 2
0
        private void MouseDoubleClickItem(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (((FrameworkElement)e.OriginalSource).DataContext is SearchSource && _settings.SelectedSearchSource != null)
            {
                var webSearch = new SearchSourceSettingWindow
                                (
                    _settings.SearchSources, _context, _settings.SelectedSearchSource
                                );

                webSearch.ShowDialog();
            }
        }
        private void OnAddSearchSearchClick(object sender, RoutedEventArgs e)
        {
            var setting = new SearchSourceSettingWindow(_settings.SearchSources, _context);

            setting.ShowDialog();
        }