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
- Range.cs
- XmlDocumentFragment.cs
- ApplicationFileParser.cs
- Pkcs7Recipient.cs
- EntityParameter.cs
- SchemaElementLookUpTable.cs
- ValidationEventArgs.cs
- WebException.cs
- ContainerActivationHelper.cs
- SQLInt32Storage.cs
- _NetworkingPerfCounters.cs
- ErrorInfoXmlDocument.cs
- CommonGetThemePartSize.cs
- RegexNode.cs
- RtType.cs
- ThicknessAnimationBase.cs
- WaitHandleCannotBeOpenedException.cs
- InheritanceContextHelper.cs
- DisplayNameAttribute.cs
- DataSysAttribute.cs
- IIS7UserPrincipal.cs
- ApplicationServiceHelper.cs
- WindowsRichEditRange.cs
- NativeCppClassAttribute.cs
- AssertSection.cs
- SqlAggregateChecker.cs
- AssemblyName.cs
- HideDisabledControlAdapter.cs
- ServiceRouteHandler.cs
- SafeCryptContextHandle.cs
- figurelengthconverter.cs
- SafeReadContext.cs
- FixedFlowMap.cs
- WebBrowsableAttribute.cs
- SafeSecurityHelper.cs
- coordinatorfactory.cs
- TextFormatterHost.cs
- DataSourceCache.cs
- GcHandle.cs
- ListViewTableCell.cs
- DeclarativeCatalogPart.cs
- ScriptingAuthenticationServiceSection.cs
- InputScopeAttribute.cs
- HostingEnvironment.cs
- Item.cs
- MatrixConverter.cs
- TextSelectionHelper.cs
- DataColumnSelectionConverter.cs
- XmlILStorageConverter.cs
- DispatcherExceptionFilterEventArgs.cs
- ExtenderControl.cs
- SafeRegistryHandle.cs
- ModelPropertyImpl.cs
- DebugControllerThread.cs
- ParserExtension.cs
- FixUp.cs
- HttpListenerRequest.cs
- COM2TypeInfoProcessor.cs
- ChineseLunisolarCalendar.cs
- HttpCacheVaryByContentEncodings.cs
- UnionCodeGroup.cs
- Model3DGroup.cs
- ObjectDataSourceEventArgs.cs
- TransformValueSerializer.cs
- DoubleLinkListEnumerator.cs
- FixedHyperLink.cs
- Image.cs
- WhileDesigner.cs
- ProfileElement.cs
- BinaryFormatterWriter.cs
- XsdDataContractImporter.cs
- EnumerableCollectionView.cs
- DataServiceProcessingPipeline.cs
- MailWebEventProvider.cs
- SchemaCollectionCompiler.cs
- VariantWrapper.cs
- ping.cs
- CompressEmulationStream.cs
- Baml2006KnownTypes.cs
- DSASignatureDeformatter.cs
- ByteRangeDownloader.cs
- ObjectComplexPropertyMapping.cs
- KnownIds.cs
- ObservableCollection.cs
- XPathDocumentNavigator.cs
- StrongNameSignatureInformation.cs
- NativeMethods.cs
- ConfigXmlElement.cs
- HtmlControlPersistable.cs
- ControlAdapter.cs
- StackBuilderSink.cs
- RuntimeWrappedException.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- CodeExpressionStatement.cs
- MSAAEventDispatcher.cs
- SourceItem.cs
- Header.cs
- LinqDataSourceStatusEventArgs.cs
- CSharpCodeProvider.cs
- XmlWriter.cs