예제 #1
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("Bloop_plugin_websearch_pls_select_web_search");
         MessageBox.Show(warning);
     }
 }
예제 #2
0
 private void btnAddWebSearch_OnClick(object sender, RoutedEventArgs e)
 {
     WebSearchSetting webSearch = new WebSearchSetting(this,context);
     webSearch.ShowDialog();
 }