Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / InputLanguageProfileNotifySink.cs / 1 / 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
- ProcessModelInfo.cs
- ExecutionContext.cs
- WarningException.cs
- SpecialFolderEnumConverter.cs
- BezierSegment.cs
- ListenerSingletonConnectionReader.cs
- ServiceBusyException.cs
- Parallel.cs
- TypeSystem.cs
- ExpressionParser.cs
- GenericUriParser.cs
- Rights.cs
- FixedElement.cs
- SettingsProperty.cs
- ExtendedPropertyDescriptor.cs
- SimplePropertyEntry.cs
- mactripleDES.cs
- altserialization.cs
- OleDbCommandBuilder.cs
- MSAANativeProvider.cs
- LiteralTextContainerControlBuilder.cs
- AsymmetricKeyExchangeDeformatter.cs
- OdbcDataReader.cs
- Run.cs
- DriveInfo.cs
- CodeCommentStatementCollection.cs
- AssertFilter.cs
- OdbcStatementHandle.cs
- StringResourceManager.cs
- UnauthorizedAccessException.cs
- ConfigXmlWhitespace.cs
- PerformanceCounterPermissionEntry.cs
- DefaultConfirmation.cs
- Math.cs
- XmlSchemaObjectCollection.cs
- PatternMatcher.cs
- EventMappingSettings.cs
- DesignerActionUI.cs
- GeneratedView.cs
- UserPersonalizationStateInfo.cs
- ConfigXmlText.cs
- SoapClientMessage.cs
- PlatformCulture.cs
- TextSyndicationContent.cs
- PeerNodeAddress.cs
- XmlHelper.cs
- MatrixCamera.cs
- KeyedPriorityQueue.cs
- ApplicationProxyInternal.cs
- QuadraticBezierSegment.cs
- Int32CAMarshaler.cs
- SqlDeflator.cs
- DataColumnMapping.cs
- AssociationTypeEmitter.cs
- LexicalChunk.cs
- CircleEase.cs
- _FixedSizeReader.cs
- TextSelectionHelper.cs
- DispatcherHooks.cs
- SessionPageStatePersister.cs
- StylusLogic.cs
- AdornedElementPlaceholder.cs
- DataGridViewDataConnection.cs
- LeaseManager.cs
- IConvertible.cs
- CodeRegionDirective.cs
- _ProxyRegBlob.cs
- TrustLevel.cs
- EncryptedXml.cs
- MetadataCollection.cs
- Int32CollectionValueSerializer.cs
- ToolStripLabel.cs
- TraceContextEventArgs.cs
- SqlConnection.cs
- HtmlWindowCollection.cs
- BooleanExpr.cs
- CustomActivityDesigner.cs
- Int32Storage.cs
- IListConverters.cs
- httpserverutility.cs
- DBDataPermission.cs
- HealthMonitoringSectionHelper.cs
- XmlSchemaRedefine.cs
- SmiMetaDataProperty.cs
- UnsafeNativeMethodsPenimc.cs
- ParameterExpression.cs
- XmlSchemaAnnotation.cs
- RegularExpressionValidator.cs
- SqlFacetAttribute.cs
- AppDomainManager.cs
- XmlSchemaDatatype.cs
- wgx_commands.cs
- TargetControlTypeAttribute.cs
- ComboBox.cs
- DataObjectFieldAttribute.cs
- TextBox.cs
- FontInfo.cs
- Component.cs
- Image.cs
- DbProviderFactoriesConfigurationHandler.cs