コード例 #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
ファイル: WebSearchesSetting.xaml.cs プロジェクト: WELL-E/Wox
 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
ファイル: WebSearchesSetting.xaml.cs プロジェクト: WELL-E/Wox
 private void btnAddWebSearch_OnClick(object sender, RoutedEventArgs e)
 {
     WebSearchSetting webSearch = new WebSearchSetting(this);
     webSearch.ShowDialog();
 }