private void OnSelectedSignatureChanged( object sender, SelectedSignatureChangedEventArgs eventArgs ) { AssertIsForeground(); if (_ignoreSelectionStatusChangedEvent) { return; } Contract.ThrowIfFalse( _signatureMap.TryGetKey( (Signature)eventArgs.NewSelectedSignature, out var helpItem ) ); var helpItemSelected = this.ItemSelected; if (helpItemSelected != null && helpItem != null) { helpItemSelected(this, new SignatureHelpItemEventArgs(helpItem)); } }
private void RefreshLanguageSettings(LANGPREFERENCES3[] langPrefs) { this.AssertIsForeground(); if (_languageMap.TryGetKey(Tuple.Create(langPrefs[0].guidLang), out var languageName)) { RefreshLanguageSettings(langPrefs, languageName); } }
private void RefreshLanguageSettings(LANGPREFERENCES3[] langPrefs) { this.AssertIsForeground(); if (_languageMap.TryGetKey(Tuple.Create(langPrefs[0].guidLang), out var languageName)) { foreach (var option in _supportedOptions) { var keyWithLanguage = new OptionKey(option, languageName); object newValue = GetValueForOption(option, langPrefs[0]); _optionService.RefreshOption(keyWithLanguage, newValue); } } }