Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SelectionGlyphBase.cs
- ExtendedProtectionPolicy.cs
- BadImageFormatException.cs
- ListSourceHelper.cs
- SymbolResolver.cs
- UnhandledExceptionEventArgs.cs
- MailAddressCollection.cs
- Policy.cs
- ModelChangedEventArgsImpl.cs
- UpdateEventArgs.cs
- RtfToken.cs
- SqlBooleanMismatchVisitor.cs
- precedingquery.cs
- QueryStringParameter.cs
- DetailsViewUpdateEventArgs.cs
- InputBinding.cs
- PopupControlService.cs
- PrimaryKeyTypeConverter.cs
- RequestQueue.cs
- CharacterBuffer.cs
- SoapReflector.cs
- DesignSurface.cs
- StringSorter.cs
- TargetInvocationException.cs
- DataTemplateKey.cs
- Viewport2DVisual3D.cs
- XPathAxisIterator.cs
- WsdlBuildProvider.cs
- ChangeProcessor.cs
- NullableBoolConverter.cs
- EntityDataSourceChangingEventArgs.cs
- BindingCollection.cs
- DesignOnlyAttribute.cs
- DecimalMinMaxAggregationOperator.cs
- TreeViewEvent.cs
- SQLInt64Storage.cs
- MaterialGroup.cs
- MexHttpsBindingCollectionElement.cs
- BamlResourceSerializer.cs
- ReadWriteSpinLock.cs
- nulltextnavigator.cs
- CommandPlan.cs
- FrameworkContentElement.cs
- HttpRuntimeSection.cs
- HostingEnvironmentException.cs
- CorrelationScope.cs
- CachingHintValidation.cs
- Bits.cs
- ProjectionPruner.cs
- ThreadAttributes.cs
- TemplateInstanceAttribute.cs
- Propagator.Evaluator.cs
- DashStyles.cs
- HandlerFactoryCache.cs
- XmlException.cs
- PolicyValidator.cs
- PropertyPath.cs
- BitmapPalette.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DocumentViewerHelper.cs
- DateTimeConverter.cs
- ReaderWriterLock.cs
- DragEvent.cs
- TreeNodeBinding.cs
- ProcessHostMapPath.cs
- baseaxisquery.cs
- VarRefManager.cs
- XmlCDATASection.cs
- AuthorizationContext.cs
- DesignerHierarchicalDataSourceView.cs
- BrowserCapabilitiesCompiler.cs
- InputMethod.cs
- ParameterElement.cs
- InputBindingCollection.cs
- GetBrowserTokenRequest.cs
- PersonalizableTypeEntry.cs
- Decorator.cs
- CodeArgumentReferenceExpression.cs
- QilNode.cs
- ZipIOExtraFieldZip64Element.cs
- TextMetrics.cs
- HttpListenerException.cs
- NullableIntMinMaxAggregationOperator.cs
- GroupQuery.cs
- XmlC14NWriter.cs
- StorageModelBuildProvider.cs
- GenericWebPart.cs
- ProjectionCamera.cs
- DrawingContextDrawingContextWalker.cs
- Clipboard.cs
- StatusStrip.cs
- UIPropertyMetadata.cs
- PropertyCondition.cs
- DocumentSequenceHighlightLayer.cs
- SafeNativeMethods.cs
- ToolStripItemRenderEventArgs.cs
- DataListItemEventArgs.cs
- OleDbErrorCollection.cs
- SymbolEqualComparer.cs
- ServerType.cs