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
- DataKeyArray.cs
- GridViewRowPresenterBase.cs
- DirectionalLight.cs
- MethodExpression.cs
- FaultCallbackWrapper.cs
- CombinedGeometry.cs
- SafeBitVector32.cs
- CreateUserWizardStep.cs
- TextComposition.cs
- PrincipalPermission.cs
- AssemblyName.cs
- XsltContext.cs
- MultiPageTextView.cs
- CaretElement.cs
- PropertyInformationCollection.cs
- ImageBrush.cs
- OneOfElement.cs
- RowSpanVector.cs
- OledbConnectionStringbuilder.cs
- TemplateField.cs
- DataSysAttribute.cs
- DetailsViewAutoFormat.cs
- EntitySetBaseCollection.cs
- String.cs
- HtmlButton.cs
- SymDocumentType.cs
- GenericsInstances.cs
- Facet.cs
- MiniMapControl.xaml.cs
- IsolatedStorageException.cs
- DataSourceCache.cs
- SingleObjectCollection.cs
- ComponentDispatcher.cs
- RequestDescription.cs
- LayoutEngine.cs
- XamlWriter.cs
- IisTraceListener.cs
- ExpressionConverter.cs
- TextServicesLoader.cs
- ReadOnlyPropertyMetadata.cs
- PathFigure.cs
- ColumnReorderedEventArgs.cs
- SmtpNtlmAuthenticationModule.cs
- QueryLifecycle.cs
- ScriptingScriptResourceHandlerSection.cs
- CharacterMetrics.cs
- ResourcePermissionBase.cs
- TCPListener.cs
- SecurityContextSecurityTokenResolver.cs
- IPHostEntry.cs
- UpDownBase.cs
- SettingsAttributes.cs
- User.cs
- TextContainerHelper.cs
- followingquery.cs
- InkCanvas.cs
- SimpleApplicationHost.cs
- CapabilitiesAssignment.cs
- DbModificationCommandTree.cs
- DataControlFieldCell.cs
- PeerChannelFactory.cs
- HtmlContainerControl.cs
- TraceContext.cs
- DiscoveryInnerClientManaged11.cs
- WebConfigurationFileMap.cs
- PingReply.cs
- _UriTypeConverter.cs
- DataGridBoolColumn.cs
- MaterializeFromAtom.cs
- MetadataPropertyCollection.cs
- FastEncoder.cs
- DataSourceControlBuilder.cs
- handlecollector.cs
- VectorCollectionValueSerializer.cs
- StrokeFIndices.cs
- Duration.cs
- HotSpotCollection.cs
- SecurityException.cs
- TextCompositionManager.cs
- BitStack.cs
- XmlNodeChangedEventArgs.cs
- UnsafeNativeMethodsPenimc.cs
- ScaleTransform3D.cs
- ZoomPercentageConverter.cs
- OracleBFile.cs
- FontSource.cs
- RSAPKCS1KeyExchangeFormatter.cs
- QilXmlWriter.cs
- DefaultValueAttribute.cs
- StringToken.cs
- ObjectStateFormatter.cs
- LocalIdKeyIdentifierClause.cs
- TCEAdapterGenerator.cs
- FontInfo.cs
- CultureMapper.cs
- Rect.cs
- AstNode.cs
- Table.cs
- DesignTimeTemplateParser.cs
- XmlSecureResolver.cs