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); } }
private void btnAddWebSearch_OnClick(object sender, RoutedEventArgs e) { WebSearchSetting webSearch = new WebSearchSetting(this,context); webSearch.ShowDialog(); }