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
- AsymmetricSecurityProtocol.cs
- FixedPageProcessor.cs
- _FtpDataStream.cs
- TcpClientChannel.cs
- ChannelFactory.cs
- PreviewPrintController.cs
- HttpApplicationStateWrapper.cs
- ParagraphVisual.cs
- ResourceIDHelper.cs
- StsCommunicationException.cs
- IDQuery.cs
- XmlAttributeProperties.cs
- Vector3DAnimationBase.cs
- RoutedEventArgs.cs
- Utility.cs
- StateElementCollection.cs
- XAMLParseException.cs
- ToolboxComponentsCreatedEventArgs.cs
- CodeVariableReferenceExpression.cs
- PlanCompilerUtil.cs
- MethodBody.cs
- StateRuntime.cs
- DataDesignUtil.cs
- ProviderCommandInfoUtils.cs
- OdbcEnvironmentHandle.cs
- MarshalByRefObject.cs
- ConfigXmlDocument.cs
- MLangCodePageEncoding.cs
- MemoryPressure.cs
- HwndProxyElementProvider.cs
- DLinqColumnProvider.cs
- TextTabProperties.cs
- WebPartCloseVerb.cs
- ChtmlMobileTextWriter.cs
- HttpClientCertificate.cs
- MobileSysDescriptionAttribute.cs
- InputLanguageEventArgs.cs
- DataGridColumnCollectionEditor.cs
- LocatorPart.cs
- BindingExpression.cs
- DataServiceQueryOfT.cs
- UniqueConstraint.cs
- Trigger.cs
- HostExecutionContextManager.cs
- AffineTransform3D.cs
- ExecutionTracker.cs
- XamlSerializer.cs
- MultiByteCodec.cs
- DragEventArgs.cs
- ScrollableControl.cs
- PropertyMetadata.cs
- CalendarDay.cs
- CommandValueSerializer.cs
- DefaultProfileManager.cs
- filewebrequest.cs
- TextTreeDeleteContentUndoUnit.cs
- ImageFormat.cs
- MenuItemStyleCollection.cs
- DataGridViewSelectedRowCollection.cs
- DBDataPermission.cs
- PlainXmlDeserializer.cs
- UnsafeNativeMethods.cs
- IdentityElement.cs
- WebPartVerbCollection.cs
- Tablet.cs
- ZoomComboBox.cs
- AlignmentXValidation.cs
- RecipientInfo.cs
- FileDialog.cs
- SpeechUI.cs
- EnumDataContract.cs
- AuthenticationException.cs
- JournalNavigationScope.cs
- SystemFonts.cs
- SQLResource.cs
- XmlSchemaAny.cs
- FilterableAttribute.cs
- GeneralTransform2DTo3DTo2D.cs
- StateWorkerRequest.cs
- ManifestBasedResourceGroveler.cs
- XamlReaderHelper.cs
- BufferedGraphicsManager.cs
- JsonFormatGeneratorStatics.cs
- DateTimeConverter2.cs
- RewritingPass.cs
- GenericsInstances.cs
- TemplateControlCodeDomTreeGenerator.cs
- BehaviorService.cs
- TrustLevel.cs
- GridViewCancelEditEventArgs.cs
- SymmetricKey.cs
- SmtpAuthenticationManager.cs
- UrlMapping.cs
- SmtpDigestAuthenticationModule.cs
- SmiEventSink.cs
- Duration.cs
- PermissionSet.cs
- SizeLimitedCache.cs
- PackagePart.cs
- followingsibling.cs