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
- Context.cs
- LiteralText.cs
- hebrewshape.cs
- WindowsPrincipal.cs
- ClusterUtils.cs
- TreeNodeEventArgs.cs
- CursorConverter.cs
- AdornerPresentationContext.cs
- GenericTypeParameterConverter.cs
- NamespaceInfo.cs
- XNodeNavigator.cs
- PrimitiveDataContract.cs
- DictionaryContent.cs
- SelectionList.cs
- storepermissionattribute.cs
- QueryOutputWriter.cs
- StatusBarItem.cs
- StoreUtilities.cs
- SplitContainer.cs
- ImportContext.cs
- ExportFileRequest.cs
- IgnoreSection.cs
- DbUpdateCommandTree.cs
- Delay.cs
- Bidi.cs
- Activator.cs
- InkPresenterAutomationPeer.cs
- RegexCharClass.cs
- ColorConverter.cs
- ProjectionCamera.cs
- AuthenticateEventArgs.cs
- DataGridViewAdvancedBorderStyle.cs
- OneToOneMappingSerializer.cs
- ProgressBarBrushConverter.cs
- ClockController.cs
- StylusOverProperty.cs
- PersonalizationStateInfo.cs
- RawKeyboardInputReport.cs
- DataControlPagerLinkButton.cs
- RemotingAttributes.cs
- DecimalConstantAttribute.cs
- datacache.cs
- PenLineCapValidation.cs
- DesignConnection.cs
- ExtractCollection.cs
- Point3DValueSerializer.cs
- CreateParams.cs
- FormattedTextSymbols.cs
- SchemaTypeEmitter.cs
- XmlSerializerAssemblyAttribute.cs
- UIPropertyMetadata.cs
- IdentifierService.cs
- TextServicesCompartmentEventSink.cs
- ConnectorEditor.cs
- KeyValueSerializer.cs
- Function.cs
- DataGridAutoFormatDialog.cs
- SystemUdpStatistics.cs
- SmtpDigestAuthenticationModule.cs
- XmlRootAttribute.cs
- SystemIPGlobalStatistics.cs
- CredentialManagerDialog.cs
- NaturalLanguageHyphenator.cs
- PopupRoot.cs
- Drawing.cs
- TypeSystem.cs
- ListViewGroupConverter.cs
- OdbcError.cs
- EdmRelationshipRoleAttribute.cs
- HtmlInputHidden.cs
- TopClause.cs
- RightsManagementEncryptedStream.cs
- DispatcherObject.cs
- GroupStyle.cs
- ProbeDuplexAsyncResult.cs
- Helpers.cs
- WaitHandle.cs
- recordstatefactory.cs
- DataControlFieldCollection.cs
- InputMethodStateChangeEventArgs.cs
- SqlUDTStorage.cs
- PieceNameHelper.cs
- ExpressionEditor.cs
- AdRotator.cs
- LocalizableResourceBuilder.cs
- DispatcherFrame.cs
- xmlsaver.cs
- FixUpCollection.cs
- TypeUnloadedException.cs
- UnauthorizedWebPart.cs
- CellTreeNode.cs
- HighContrastHelper.cs
- SoapFault.cs
- ImageFormatConverter.cs
- ListViewSelectEventArgs.cs
- ClientRolePrincipal.cs
- SmiContextFactory.cs
- ParameterElement.cs
- Rule.cs
- Animatable.cs