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
- KeyValuePair.cs
- HostingEnvironment.cs
- SubMenuStyleCollectionEditor.cs
- ArgumentException.cs
- MissingManifestResourceException.cs
- FileDetails.cs
- SafeNativeMethods.cs
- JpegBitmapDecoder.cs
- KeyPressEvent.cs
- DataContext.cs
- ProviderBase.cs
- SrgsText.cs
- DataTable.cs
- ProcessHostConfigUtils.cs
- SettingsAttributes.cs
- SafeCryptContextHandle.cs
- NamespaceCollection.cs
- HandlerBase.cs
- MulticastIPAddressInformationCollection.cs
- Vector3DKeyFrameCollection.cs
- MultiView.cs
- WebPartMinimizeVerb.cs
- DeleteHelper.cs
- WSTrustDec2005.cs
- DynamicValueConverter.cs
- DSASignatureFormatter.cs
- DataTableMapping.cs
- CookieParameter.cs
- LabelLiteral.cs
- ComponentResourceKey.cs
- SafeCryptContextHandle.cs
- PkcsUtils.cs
- UnsafeNativeMethods.cs
- MultiByteCodec.cs
- PropertyTabChangedEvent.cs
- ColumnResizeUndoUnit.cs
- TextAutomationPeer.cs
- TagMapCollection.cs
- TextParaClient.cs
- ConfigurationManagerInternalFactory.cs
- SqlDataSourceStatusEventArgs.cs
- CssTextWriter.cs
- EntityCommandDefinition.cs
- MemberAccessException.cs
- PropertyTab.cs
- VisualProxy.cs
- httpapplicationstate.cs
- BaseParaClient.cs
- EventSinkActivity.cs
- MemoryStream.cs
- DesignBindingPicker.cs
- BooleanExpr.cs
- Model3DGroup.cs
- DoubleLinkList.cs
- PkcsUtils.cs
- ElementNotAvailableException.cs
- WindowsListViewGroup.cs
- DefaultBinder.cs
- MethodRental.cs
- ISAPIApplicationHost.cs
- DescendentsWalkerBase.cs
- Object.cs
- BitmapEffectCollection.cs
- BitmapEffectInput.cs
- TimeSpanMinutesConverter.cs
- TableItemPattern.cs
- KeyValueInternalCollection.cs
- TemplateControlBuildProvider.cs
- OleAutBinder.cs
- BasicKeyConstraint.cs
- SqlLiftIndependentRowExpressions.cs
- CopyOfAction.cs
- GPRECTF.cs
- SiteMapDataSource.cs
- DefaultCommandExtensionCallback.cs
- CatalogPartChrome.cs
- FrameworkTemplate.cs
- IgnoreFileBuildProvider.cs
- InputLanguage.cs
- StructuralCache.cs
- DbModificationClause.cs
- InheritanceRules.cs
- DesignerAdRotatorAdapter.cs
- OdbcReferenceCollection.cs
- DesignerTransactionCloseEvent.cs
- MimeMapping.cs
- ScalarType.cs
- DecimalStorage.cs
- NamespaceEmitter.cs
- XpsFilter.cs
- HtmlInputHidden.cs
- DataGridViewRowEventArgs.cs
- RoleService.cs
- PolicyStatement.cs
- IPEndPoint.cs
- ReferencedType.cs
- Crc32.cs
- ProjectedSlot.cs
- XmlAttribute.cs
- XomlCompiler.cs