Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ListViewInsertedEventArgs.cs
- BindingSourceDesigner.cs
- InvokeWebServiceDesigner.cs
- Renderer.cs
- DataRow.cs
- SoapFault.cs
- DictationGrammar.cs
- Camera.cs
- ListControl.cs
- WebReferencesBuildProvider.cs
- ToolboxDataAttribute.cs
- TableRowGroup.cs
- QilTypeChecker.cs
- FamilyTypefaceCollection.cs
- AccessDataSource.cs
- DoubleLinkList.cs
- MimeWriter.cs
- HtmlToClrEventProxy.cs
- XmlText.cs
- ElementProxy.cs
- PeerEndPoint.cs
- RestHandlerFactory.cs
- SelfIssuedAuthRSACryptoProvider.cs
- MetaColumn.cs
- WS2007FederationHttpBindingCollectionElement.cs
- ConnectionProviderAttribute.cs
- Span.cs
- ISFClipboardData.cs
- HandlerFactoryWrapper.cs
- OdbcConnectionPoolProviderInfo.cs
- ClientRuntimeConfig.cs
- Thread.cs
- PackUriHelper.cs
- HwndAppCommandInputProvider.cs
- HandleCollector.cs
- ScopeElement.cs
- CqlBlock.cs
- Sql8ConformanceChecker.cs
- DbParameterHelper.cs
- ChainOfResponsibility.cs
- GridViewUpdatedEventArgs.cs
- EmptyQuery.cs
- MediaPlayer.cs
- ConfigXmlSignificantWhitespace.cs
- XmlAttributeOverrides.cs
- PathSegmentCollection.cs
- WebPartZoneBase.cs
- FloaterParagraph.cs
- DesignerValidatorAdapter.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- SettingsAttributeDictionary.cs
- PatternMatcher.cs
- DocumentPageView.cs
- AuthenticationModuleElementCollection.cs
- GC.cs
- Validator.cs
- CodeDomSerializer.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- AbstractSvcMapFileLoader.cs
- SignatureHelper.cs
- XmlHelper.cs
- OutputCacheProviderCollection.cs
- OptimizedTemplateContentHelper.cs
- ViewBase.cs
- ProviderUtil.cs
- VirtualizedCellInfoCollection.cs
- WSSecureConversationFeb2005.cs
- CngKey.cs
- ThreadAbortException.cs
- UnmanagedMemoryStream.cs
- OdbcConnectionStringbuilder.cs
- CustomValidator.cs
- ObjectCacheHost.cs
- DataServiceConfiguration.cs
- ToolStripDropDownButton.cs
- PolyBezierSegment.cs
- TranslateTransform.cs
- SecurityTokenTypes.cs
- FileUtil.cs
- Transform.cs
- BindingList.cs
- ConnectionProviderAttribute.cs
- FrameworkElement.cs
- IdentitySection.cs
- XmlReflectionImporter.cs
- GenericTypeParameterBuilder.cs
- QueryCacheEntry.cs
- RectAnimationUsingKeyFrames.cs
- WorkflowEnvironment.cs
- RelatedView.cs
- ListViewHitTestInfo.cs
- LinkArea.cs
- ObjectDataSourceStatusEventArgs.cs
- ObjectNotFoundException.cs
- DataBoundControl.cs
- BasicHttpSecurityMode.cs
- XmlSchemaDocumentation.cs
- RegexParser.cs
- JavaScriptObjectDeserializer.cs
- IteratorDescriptor.cs