private void SelectedSearcherSettings_OnClick(object sender, RoutedEventArgs e) { string module = $"{_product}.{_class}.{MethodBase.GetCurrentMethod().Name}()"; Globals.Chem4WordV3.Telemetry.Write(module, "Action", "Triggered"); IChem4WordSearcher searcher = Globals.Chem4WordV3.GetSearcherPlugIn(SelectSearcherPlugIn.SelectedItem.ToString()); searcher.SettingsPath = Globals.Chem4WordV3.AddInInfo.ProductAppDataPath; searcher.ChangeSettings(new Point(SystemOptions.WordTopLeft.X + Constants.TopLeftOffset * 2, SystemOptions.WordTopLeft.Y + Constants.TopLeftOffset * 2)); }
private void SelectSearcher_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { string module = $"{_product}.{_class}.{MethodBase.GetCurrentMethod().Name}()"; if (!_loading) { Globals.Chem4WordV3.Telemetry.Write(module, "Action", "Triggered"); PlugInComboItem pci = SelectSearcherPlugIn.SelectedItem as PlugInComboItem; SelectedSearcherDescription.Text = pci?.Description; IChem4WordSearcher searcher = Globals.Chem4WordV3.GetSearcherPlugIn(pci.Name); SelectedSearcherSettings.IsEnabled = searcher.HasSettings; Dirty = true; } }
private void OnSearchersSelectedIndexChanged(object sender, EventArgs e) { string module = $"{_product}.{_class}.{MethodBase.GetCurrentMethod().Name}()"; try { PlugInComboItem pci = cboSearchers.SelectedItem as PlugInComboItem; lblSearcherDescription.Text = pci.Description; IChem4WordSearcher searcher = Globals.Chem4WordV3.GetSearcherPlugIn(pci.Name); btnSearcherSettings.Enabled = searcher.HasSettings; } catch (Exception ex) { new ReportError(Globals.Chem4WordV3.Telemetry, TopLeft, module, ex).ShowDialog(); } }
private void OnSearcherSettingsClick(object sender, EventArgs e) { string module = $"{_product}.{_class}.{MethodBase.GetCurrentMethod().Name}()"; Globals.Chem4WordV3.Telemetry.Write(module, "Action", "Triggered"); try { IChem4WordSearcher searcher = Globals.Chem4WordV3.GetSearcherPlugIn(cboSearchers.SelectedItem.ToString()); searcher.ProductAppDataPath = Globals.Chem4WordV3.AddInInfo.ProductAppDataPath; searcher.ChangeSettings(new Point(TopLeft.X + Constants.TopLeftOffset, TopLeft.Y + Constants.TopLeftOffset)); } catch (Exception ex) { new ReportError(Globals.Chem4WordV3.Telemetry, TopLeft, module, ex).ShowDialog(); } }