Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / WinEventQueueItem.cs / 1 / WinEventQueueItem.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Class to create a queue on its own thread. // // History: // 06/17/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System.Windows.Automation; using System.Windows.Automation.Provider; using System; using System.Threading; using System.Collections; using MS.Internal.Automation; using MS.Win32; namespace MS.Internal.Automation { // Worker class used to handle WinEvents internal class WinEventQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal WinEventQueueItem(WinEventWrap winEventWrap, int state) { _winEventWrap = winEventWrap; _state = state; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields internal const int StartListening = 1; internal const int StopListening = 2; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods internal override void Process() { if (_state == StartListening) { _winEventWrap.StartListening(); } else { _winEventWrap.StopListening(); } } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private WinEventWrap _winEventWrap; private int _state; #endregion Private Fields } } // 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: Class to create a queue on its own thread. // // History: // 06/17/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System.Windows.Automation; using System.Windows.Automation.Provider; using System; using System.Threading; using System.Collections; using MS.Internal.Automation; using MS.Win32; namespace MS.Internal.Automation { // Worker class used to handle WinEvents internal class WinEventQueueItem : QueueItem { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal WinEventQueueItem(WinEventWrap winEventWrap, int state) { _winEventWrap = winEventWrap; _state = state; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields internal const int StartListening = 1; internal const int StopListening = 2; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods internal override void Process() { if (_state == StartListening) { _winEventWrap.StartListening(); } else { _winEventWrap.StopListening(); } } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private WinEventWrap _winEventWrap; private int _state; #endregion Private Fields } } // 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
- DbCommandTree.cs
- XmlQueryStaticData.cs
- InstanceDataCollection.cs
- ResourceExpression.cs
- EtwTrace.cs
- XPathNavigatorKeyComparer.cs
- TemplateLookupAction.cs
- StateElementCollection.cs
- DataServiceKeyAttribute.cs
- ProfilePropertyNameValidator.cs
- BindingParameterCollection.cs
- Model3DCollection.cs
- BitVector32.cs
- followingquery.cs
- RayHitTestParameters.cs
- QilTernary.cs
- WebPartTransformerCollection.cs
- ConfigurationStrings.cs
- FrameworkTextComposition.cs
- RowType.cs
- Filter.cs
- Number.cs
- HtmlLinkAdapter.cs
- MessageBuilder.cs
- BitmapDecoder.cs
- KeyProperty.cs
- XmlSchemaAnyAttribute.cs
- TextSpanModifier.cs
- SafeRightsManagementHandle.cs
- DecimalAnimationBase.cs
- AuthenticatedStream.cs
- MatcherBuilder.cs
- Int64Converter.cs
- TreeView.cs
- EmptyStringExpandableObjectConverter.cs
- TextBounds.cs
- ConfigurationSection.cs
- IndentedTextWriter.cs
- Function.cs
- ButtonColumn.cs
- Point3DAnimation.cs
- DivideByZeroException.cs
- KeyboardNavigation.cs
- Bitmap.cs
- SoapEnumAttribute.cs
- LoadWorkflowCommand.cs
- OracleDateTime.cs
- XmlTextReaderImplHelpers.cs
- Table.cs
- DeferredTextReference.cs
- TypeConverter.cs
- LinkClickEvent.cs
- ClientApiGenerator.cs
- XmlSchemaComplexContentExtension.cs
- CacheSection.cs
- EnumerableRowCollection.cs
- EntityException.cs
- OleDbMetaDataFactory.cs
- documentsequencetextview.cs
- HitTestFilterBehavior.cs
- DocumentApplicationJournalEntry.cs
- Mappings.cs
- SuppressMergeCheckAttribute.cs
- SizeAnimation.cs
- EndpointAddressMessageFilterTable.cs
- SecurityTokenInclusionMode.cs
- Scheduler.cs
- RewritingPass.cs
- TargetControlTypeAttribute.cs
- DependentTransaction.cs
- Image.cs
- TextInfo.cs
- EntityDataSourceContainerNameConverter.cs
- NullPackagingPolicy.cs
- XmlSchemaElement.cs
- InputLangChangeEvent.cs
- DelegateArgument.cs
- CombinedGeometry.cs
- CompositeActivityTypeDescriptorProvider.cs
- ComponentResourceManager.cs
- FrameworkElementAutomationPeer.cs
- EntityCommandCompilationException.cs
- CqlLexer.cs
- TypeHelpers.cs
- NumericUpDownAccelerationCollection.cs
- DispatcherFrame.cs
- TransformationRules.cs
- BidirectionalDictionary.cs
- MenuEventArgs.cs
- ProviderConnectionPoint.cs
- TextParagraphView.cs
- GridViewPageEventArgs.cs
- JavaScriptObjectDeserializer.cs
- SrgsElementFactoryCompiler.cs
- IgnoreFileBuildProvider.cs
- ContentWrapperAttribute.cs
- Dump.cs
- CopyOnWriteList.cs
- FixedSOMImage.cs
- ReadOnlyAttribute.cs