Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputLanguageProfileNotifySink.cs / 1305600 / InputLanguageProfileNotifySink.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: The source of the input language of the thread. // // History: // 07/30/2003 : yutakas - ported from dotnet tree. // //--------------------------------------------------------------------------- using MS.Win32; using System.Collections; using System.Globalization; using System.Windows.Input; using System.Windows.Media; using System.Windows.Interop; using System.Runtime.InteropServices; using System; namespace System.Windows.Input { //----------------------------------------------------- // // InputLanguageProfileNotifySink // //----------------------------------------------------- ////// This is an internal. This is an implementation of ITfLanguageProfileNotifySink. /// internal class InputLanguageProfileNotifySink : UnsafeNativeMethods.ITfLanguageProfileNotifySink { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- internal InputLanguageProfileNotifySink(InputLanguageSource target) { _target = target; } //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ ////// OnLanguageChange call back of the interface. /// public void OnLanguageChange(short langid, out bool accept) { accept = _target.OnLanguageChange(langid); } ////// OnLanguageChanged call back of the interface. /// public void OnLanguageChanged() { _target.OnLanguageChanged(); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ // the owner of this sink. private InputLanguageSource _target; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: The source of the input language of the thread. // // History: // 07/30/2003 : yutakas - ported from dotnet tree. // //--------------------------------------------------------------------------- using MS.Win32; using System.Collections; using System.Globalization; using System.Windows.Input; using System.Windows.Media; using System.Windows.Interop; using System.Runtime.InteropServices; using System; namespace System.Windows.Input { //----------------------------------------------------- // // InputLanguageProfileNotifySink // //----------------------------------------------------- ////// This is an internal. This is an implementation of ITfLanguageProfileNotifySink. /// internal class InputLanguageProfileNotifySink : UnsafeNativeMethods.ITfLanguageProfileNotifySink { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- internal InputLanguageProfileNotifySink(InputLanguageSource target) { _target = target; } //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ ////// OnLanguageChange call back of the interface. /// public void OnLanguageChange(short langid, out bool accept) { accept = _target.OnLanguageChange(langid); } ////// OnLanguageChanged call back of the interface. /// public void OnLanguageChanged() { _target.OnLanguageChanged(); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ // the owner of this sink. private InputLanguageSource _target; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MeasurementDCInfo.cs
- basemetadatamappingvisitor.cs
- Debug.cs
- RootBuilder.cs
- GroupByExpressionRewriter.cs
- HtmlGenericControl.cs
- cryptoapiTransform.cs
- RijndaelCryptoServiceProvider.cs
- WinFormsComponentEditor.cs
- XPathBuilder.cs
- HighlightVisual.cs
- WebPartZoneBase.cs
- Parameter.cs
- StreamWriter.cs
- SizeLimitedCache.cs
- PermissionListSet.cs
- SHA512.cs
- WebDisplayNameAttribute.cs
- TimelineGroup.cs
- SignatureHelper.cs
- CompilationSection.cs
- TopClause.cs
- Label.cs
- StateFinalizationActivity.cs
- DataGridViewTextBoxCell.cs
- HashRepartitionStream.cs
- EntityDataSourceWizardForm.cs
- ClientCredentialsElement.cs
- GeometryGroup.cs
- WarningException.cs
- NonClientArea.cs
- EncodingStreamWrapper.cs
- GenericXmlSecurityToken.cs
- WhitespaceRuleLookup.cs
- TrustManagerPromptUI.cs
- LinqDataSourceValidationException.cs
- SmtpAuthenticationManager.cs
- ShaderRenderModeValidation.cs
- ZoneMembershipCondition.cs
- CodeDomExtensionMethods.cs
- DynamicPropertyHolder.cs
- NGCSerializationManagerAsync.cs
- HtmlFormAdapter.cs
- KeyInfo.cs
- EventRoute.cs
- CompoundFileStreamReference.cs
- XmlReflectionMember.cs
- DoWorkEventArgs.cs
- ContractSearchPattern.cs
- WebPart.cs
- EntityRecordInfo.cs
- GatewayDefinition.cs
- TransformerConfigurationWizardBase.cs
- CodeGenerator.cs
- FocusWithinProperty.cs
- ScriptControl.cs
- XmlName.cs
- SByteConverter.cs
- Comparer.cs
- DockAndAnchorLayout.cs
- SegmentInfo.cs
- FixedSOMGroup.cs
- BufferedWebEventProvider.cs
- EmbossBitmapEffect.cs
- SqlServices.cs
- HttpDebugHandler.cs
- ObjectDataSourceSelectingEventArgs.cs
- TraceHwndHost.cs
- SimpleType.cs
- RegexNode.cs
- CodeDOMProvider.cs
- ContainerTracking.cs
- SelectionChangedEventArgs.cs
- ParseChildrenAsPropertiesAttribute.cs
- WebPartActionVerb.cs
- SafeFileMapViewHandle.cs
- RootBuilder.cs
- AsyncCompletedEventArgs.cs
- PrintingPermissionAttribute.cs
- Model3D.cs
- SingleResultAttribute.cs
- CurrencyWrapper.cs
- CounterCreationData.cs
- _OSSOCK.cs
- SqlRowUpdatingEvent.cs
- TraceLevelStore.cs
- PhysicalAddress.cs
- Bits.cs
- GlobalizationAssembly.cs
- ProxySimple.cs
- CompilerError.cs
- QuotedPrintableStream.cs
- TemplateControlParser.cs
- SequenceDesignerAccessibleObject.cs
- TextElementEnumerator.cs
- ScriptHandlerFactory.cs
- LightweightCodeGenerator.cs
- SemanticResultValue.cs
- InkPresenterAutomationPeer.cs
- PolicyImporterElement.cs