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
- ReachPageContentCollectionSerializer.cs
- ToolStripTextBox.cs
- Timer.cs
- ExtensionDataReader.cs
- CompensationHandlingFilter.cs
- IndicShape.cs
- PointAnimation.cs
- xsdvalidator.cs
- ToolBarButton.cs
- GridItemPatternIdentifiers.cs
- DependencyProperty.cs
- CachedCompositeFamily.cs
- NullableFloatAverageAggregationOperator.cs
- DataBindingExpressionBuilder.cs
- ClientSettingsSection.cs
- DeploymentSectionCache.cs
- SemaphoreFullException.cs
- XmlCDATASection.cs
- Ref.cs
- VisualStyleInformation.cs
- DefaultPropertyAttribute.cs
- SQLBytesStorage.cs
- FixUpCollection.cs
- MemberInfoSerializationHolder.cs
- EntityDataSourceEntityTypeFilterItem.cs
- DocumentPageTextView.cs
- PrintDialogException.cs
- CodeBinaryOperatorExpression.cs
- Image.cs
- MessageBox.cs
- StateManagedCollection.cs
- DeviceSpecificChoice.cs
- NonVisualControlAttribute.cs
- ServiceProviders.cs
- MailSettingsSection.cs
- ConvertEvent.cs
- IdentityNotMappedException.cs
- DateTime.cs
- StagingAreaInputItem.cs
- ComponentRenameEvent.cs
- ExpressionEditorAttribute.cs
- BitmapEncoder.cs
- CodeTypeParameter.cs
- SurrogateDataContract.cs
- LayoutManager.cs
- XmlTextEncoder.cs
- FontSizeConverter.cs
- URLMembershipCondition.cs
- Utils.cs
- MethodBuilderInstantiation.cs
- TableRowCollection.cs
- SmiEventStream.cs
- DesignerSerializationOptionsAttribute.cs
- FrugalMap.cs
- SqlRowUpdatingEvent.cs
- IntegerFacetDescriptionElement.cs
- CollectionBase.cs
- DataServiceQueryOfT.cs
- SerTrace.cs
- EdmError.cs
- ZipIOFileItemStream.cs
- ContourSegment.cs
- CachedBitmap.cs
- PersonalizationEntry.cs
- NetworkCredential.cs
- TargetParameterCountException.cs
- TemplateBuilder.cs
- MetabaseServerConfig.cs
- Substitution.cs
- StylesEditorDialog.cs
- NotifyParentPropertyAttribute.cs
- Image.cs
- ClientRuntimeConfig.cs
- Attributes.cs
- DataQuery.cs
- _SSPIWrapper.cs
- DataRowIndexBuffer.cs
- Pen.cs
- Constants.cs
- SrgsDocument.cs
- DependencyObjectValidator.cs
- Regex.cs
- Stack.cs
- DynamicUpdateCommand.cs
- UserNamePasswordValidator.cs
- TrackingValidationObjectDictionary.cs
- OwnerDrawPropertyBag.cs
- LogRestartAreaEnumerator.cs
- __FastResourceComparer.cs
- SystemPens.cs
- SparseMemoryStream.cs
- COM2PropertyPageUITypeConverter.cs
- BuilderPropertyEntry.cs
- remotingproxy.cs
- PreservationFileReader.cs
- GridViewCellAutomationPeer.cs
- CompositeCollection.cs
- ISFTagAndGuidCache.cs
- SocketAddress.cs
- SqlError.cs