Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / MS / Internal / Automation / WinEventQueueItem.cs / 1305600 / 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
- AsyncPostBackTrigger.cs
- SafeNativeMethodsCLR.cs
- UInt16Storage.cs
- WebPartHelpVerb.cs
- SafeRightsManagementQueryHandle.cs
- SmiRequestExecutor.cs
- EntityConnectionStringBuilder.cs
- RuleProcessor.cs
- MemberRelationshipService.cs
- SuppressMessageAttribute.cs
- OdbcException.cs
- TouchesOverProperty.cs
- BackStopAuthenticationModule.cs
- Interfaces.cs
- DispatcherSynchronizationContext.cs
- InvalidOperationException.cs
- ModelPropertyDescriptor.cs
- ScriptModule.cs
- Border.cs
- StatusBarItem.cs
- OrderedHashRepartitionStream.cs
- XmlnsDictionary.cs
- RemoteCryptoDecryptRequest.cs
- PropertyItemInternal.cs
- QilValidationVisitor.cs
- HwndHost.cs
- ValidationEventArgs.cs
- LeafCellTreeNode.cs
- Mutex.cs
- GridSplitterAutomationPeer.cs
- PassportAuthentication.cs
- SetStoryboardSpeedRatio.cs
- TimerElapsedEvenArgs.cs
- QueryContinueDragEvent.cs
- UnaryNode.cs
- RecordBuilder.cs
- ContainerActivationHelper.cs
- ByteStack.cs
- IconBitmapDecoder.cs
- TagPrefixAttribute.cs
- FontSource.cs
- SelectionService.cs
- CreateUserWizardStep.cs
- ThemeableAttribute.cs
- ResourceProperty.cs
- InputGestureCollection.cs
- AuthenticationModulesSection.cs
- SqlFacetAttribute.cs
- AccessedThroughPropertyAttribute.cs
- MdiWindowListStrip.cs
- RequestCacheManager.cs
- Stack.cs
- HttpDebugHandler.cs
- BindingManagerDataErrorEventArgs.cs
- SqlDesignerDataSourceView.cs
- HatchBrush.cs
- nulltextcontainer.cs
- ServiceOperationParameter.cs
- ChannelDispatcherBase.cs
- NoResizeHandleGlyph.cs
- AssociatedControlConverter.cs
- SharedPersonalizationStateInfo.cs
- ProtocolElement.cs
- IteratorFilter.cs
- QilScopedVisitor.cs
- Crypto.cs
- DataServiceQueryOfT.cs
- TextBoxBase.cs
- Sentence.cs
- ExceptionUtil.cs
- GradientPanel.cs
- Drawing.cs
- TransformConverter.cs
- UpdateProgress.cs
- SQLSingle.cs
- HighContrastHelper.cs
- SlotInfo.cs
- ContextMenu.cs
- Inflater.cs
- StreamingContext.cs
- SocketInformation.cs
- TrustManagerPromptUI.cs
- MessageFormatterConverter.cs
- MachineKeySection.cs
- OledbConnectionStringbuilder.cs
- MexBindingElement.cs
- GenericIdentity.cs
- StyleCollection.cs
- PropertyIDSet.cs
- CallbackBehaviorAttribute.cs
- SizeChangedInfo.cs
- ImageListStreamer.cs
- ListDesigner.cs
- mactripleDES.cs
- ObjectTag.cs
- TextRunCacheImp.cs
- VisualStateChangedEventArgs.cs
- SqlRemoveConstantOrderBy.cs
- HyperLink.cs
- ObservableCollection.cs