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
- OdbcCommandBuilder.cs
- GridItemProviderWrapper.cs
- XPathItem.cs
- CaseStatementSlot.cs
- Container.cs
- RoleManagerSection.cs
- EarlyBoundInfo.cs
- JumpTask.cs
- TransformCollection.cs
- MeshGeometry3D.cs
- ActivityExecutionFilter.cs
- Int16Storage.cs
- CompressedStack.cs
- SqlCachedBuffer.cs
- DiscoveryDocumentSerializer.cs
- DataChangedEventManager.cs
- DbConnectionPoolGroup.cs
- DocumentReferenceCollection.cs
- AddressHeader.cs
- BooleanFacetDescriptionElement.cs
- ResolvedKeyFrameEntry.cs
- StorageFunctionMapping.cs
- DataContractSerializerFaultFormatter.cs
- AuthenticationServiceManager.cs
- ModuleConfigurationInfo.cs
- StreamReader.cs
- ControlCachePolicy.cs
- Encoder.cs
- DataGridItemEventArgs.cs
- RenderDataDrawingContext.cs
- ItemCollection.cs
- BlurBitmapEffect.cs
- GlyphManager.cs
- ZipQueryOperator.cs
- PipelineModuleStepContainer.cs
- BufferAllocator.cs
- MsmqProcessProtocolHandler.cs
- KeyTime.cs
- StringCollection.cs
- DataGridView.cs
- SafeTimerHandle.cs
- PenLineCapValidation.cs
- AssociationEndMember.cs
- ExtensionElementCollection.cs
- Point3DAnimationBase.cs
- SafeEventLogWriteHandle.cs
- LicenseException.cs
- DateTime.cs
- BitmapSizeOptions.cs
- SqlBooleanMismatchVisitor.cs
- StartUpEventArgs.cs
- ProcessManager.cs
- WebMethodAttribute.cs
- TrustSection.cs
- BamlLocalizationDictionary.cs
- SectionXmlInfo.cs
- SpeechSynthesizer.cs
- ReadOnlyNameValueCollection.cs
- QueryTaskGroupState.cs
- ScriptReferenceBase.cs
- CodeBinaryOperatorExpression.cs
- sqlinternaltransaction.cs
- ButtonColumn.cs
- OrderedDictionaryStateHelper.cs
- AutoResetEvent.cs
- ContextStack.cs
- ItemCheckedEvent.cs
- TextAction.cs
- GC.cs
- LinkConverter.cs
- WebException.cs
- DataGridRelationshipRow.cs
- XmlName.cs
- DiscoveryClientDuplexChannel.cs
- SelectionPatternIdentifiers.cs
- XmlSchemaValidationException.cs
- UrlPath.cs
- UserCancellationException.cs
- DataGridViewColumnDesigner.cs
- PickBranchDesigner.xaml.cs
- CustomWebEventKey.cs
- IsolatedStorageSecurityState.cs
- PrintDialogException.cs
- SubqueryRules.cs
- RegistryExceptionHelper.cs
- SoapBinding.cs
- Drawing.cs
- EventDescriptor.cs
- HttpServerChannel.cs
- Component.cs
- ScrollProperties.cs
- ItemCollectionEditor.cs
- ValidationSettings.cs
- ItemCheckEvent.cs
- WebBrowser.cs
- _RegBlobWebProxyDataBuilder.cs
- DirectoryGroupQuery.cs
- CreateParams.cs
- RolePrincipal.cs
- EventMappingSettings.cs