示例#1
0
        private void btnAddWebSearch_OnClick(object sender, RoutedEventArgs e)
        {
            var setting   = new WebSearchSetting(this, _settings);
            var webSearch = new WebSearch();


            setting.AddItem(webSearch);
            setting.ShowDialog();
        }
示例#2
0
 private void btnEditWebSearch_OnClick(object sender, RoutedEventArgs e)
 {
     WebSearch selectedWebSearch = webSearchView.SelectedItem as WebSearch;
     if (selectedWebSearch != null)
     {
         WebSearchSetting webSearch = new WebSearchSetting(this);
         webSearch.UpdateItem(selectedWebSearch);
         webSearch.ShowDialog();
     }
     else
     {
         string warning = Context.API.GetTranslation("wox_plugin_websearch_pls_select_web_search");
         MessageBox.Show(warning);
     }
 }
示例#3
0
        private void btnEditWebSearch_OnClick(object sender, RoutedEventArgs e)
        {
            WebSearch selectedWebSearch = webSearchView.SelectedItem as WebSearch;

            if (selectedWebSearch != null)
            {
                WebSearchSetting webSearch = new WebSearchSetting(this, context);
                webSearch.UpdateItem(selectedWebSearch);
                webSearch.ShowDialog();
            }
            else
            {
                string warning = context.API.GetTranslation("wox_plugin_websearch_pls_select_web_search");
                MessageBox.Show(warning);
            }
        }
示例#4
0
        private void btnAddWebSearch_OnClick(object sender, RoutedEventArgs e)
        {
            WebSearchSetting webSearch = new WebSearchSetting(this, context);

            webSearch.ShowDialog();
        }
示例#5
0
 private void btnAddWebSearch_OnClick(object sender, RoutedEventArgs e)
 {
     WebSearchSetting webSearch = new WebSearchSetting(this);
     webSearch.ShowDialog();
 }