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
- TextCharacters.cs
- OutKeywords.cs
- PageSettings.cs
- Dictionary.cs
- ItemsPresenter.cs
- GreenMethods.cs
- NameTable.cs
- sortedlist.cs
- BuildResultCache.cs
- ContainerParagraph.cs
- ClonableStack.cs
- bidPrivateBase.cs
- JsonEncodingStreamWrapper.cs
- SequenceDesignerAccessibleObject.cs
- ExecutionEngineException.cs
- EarlyBoundInfo.cs
- ProviderBase.cs
- DetailsViewUpdatedEventArgs.cs
- ErrorInfoXmlDocument.cs
- _MultipleConnectAsync.cs
- DynamicPropertyHolder.cs
- SchemaDeclBase.cs
- COAUTHIDENTITY.cs
- IndentedWriter.cs
- SqlBulkCopyColumnMapping.cs
- TrustManagerMoreInformation.cs
- SecurityContextKeyIdentifierClause.cs
- Profiler.cs
- HelpKeywordAttribute.cs
- ContextMenuService.cs
- Vector.cs
- ImageSource.cs
- DataControlFieldCell.cs
- DecimalAnimation.cs
- RelationshipWrapper.cs
- StylusSystemGestureEventArgs.cs
- SynthesizerStateChangedEventArgs.cs
- ExtensibleClassFactory.cs
- XPathEmptyIterator.cs
- SoundPlayerAction.cs
- basevalidator.cs
- BlockCollection.cs
- CssStyleCollection.cs
- CqlParserHelpers.cs
- HttpErrorTraceRecord.cs
- InputScopeConverter.cs
- ColorAnimationUsingKeyFrames.cs
- ToolboxBitmapAttribute.cs
- WebPartCatalogAddVerb.cs
- ClientCultureInfo.cs
- webbrowsersite.cs
- ListBox.cs
- KernelTypeValidation.cs
- TimelineGroup.cs
- TextSelection.cs
- DecimalKeyFrameCollection.cs
- ObjectDataSourceSelectingEventArgs.cs
- shaperfactoryquerycacheentry.cs
- Classification.cs
- SignedInfo.cs
- ResourceReferenceKeyNotFoundException.cs
- IItemProperties.cs
- WebPartTransformer.cs
- PropertyNames.cs
- UrlPropertyAttribute.cs
- DataGridViewMethods.cs
- FlatButtonAppearance.cs
- XmlHierarchicalDataSourceView.cs
- ContextMenuStrip.cs
- XmlSchemaComplexContentExtension.cs
- VectorAnimationBase.cs
- ReachVisualSerializerAsync.cs
- DataGridCell.cs
- ResourceContainer.cs
- LinqExpressionNormalizer.cs
- _DomainName.cs
- MimeFormatter.cs
- TextDecorationLocationValidation.cs
- OleDbConnectionFactory.cs
- BufferedStream.cs
- ToolStripPanel.cs
- DbConnectionPoolGroup.cs
- NoClickablePointException.cs
- IUnknownConstantAttribute.cs
- CheckStoreFileValidityRequest.cs
- SimpleTypesSurrogate.cs
- TextPointerBase.cs
- PartialList.cs
- MDIWindowDialog.cs
- XmlArrayItemAttribute.cs
- FixedSOMTableCell.cs
- AxisAngleRotation3D.cs
- _Rfc2616CacheValidators.cs
- BaseDataList.cs
- AssociatedControlConverter.cs
- ExceptionAggregator.cs
- List.cs
- AppDomainManager.cs
- RegexCaptureCollection.cs
- _HeaderInfo.cs