Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- COM2IManagedPerPropertyBrowsingHandler.cs
- SoapElementAttribute.cs
- unsafeIndexingFilterStream.cs
- ObjectItemAssemblyLoader.cs
- FileDialog.cs
- VariableAction.cs
- DataFieldConverter.cs
- SQLConvert.cs
- VectorAnimationUsingKeyFrames.cs
- GridViewColumnHeader.cs
- UnhandledExceptionEventArgs.cs
- Compiler.cs
- DateTimeConstantAttribute.cs
- SqlConnectionHelper.cs
- StringValidator.cs
- CellParagraph.cs
- DelayedRegex.cs
- ListBase.cs
- ScopedKnownTypes.cs
- QueryExpr.cs
- Int16Animation.cs
- ColumnHeaderConverter.cs
- EntityContainer.cs
- MessageQueueEnumerator.cs
- ShaderRenderModeValidation.cs
- FacetChecker.cs
- ClientBuildManagerCallback.cs
- FocusChangedEventArgs.cs
- ColumnWidthChangedEvent.cs
- DBNull.cs
- XmlSchemaGroup.cs
- DataGridViewRowHeaderCell.cs
- ButtonChrome.cs
- UnmanagedBitmapWrapper.cs
- LogicalCallContext.cs
- COM2TypeInfoProcessor.cs
- ObjectNavigationPropertyMapping.cs
- FrameworkName.cs
- GroupJoinQueryOperator.cs
- TemplatedAdorner.cs
- SystemIPGlobalStatistics.cs
- StackBuilderSink.cs
- _SingleItemRequestCache.cs
- DocumentsTrace.cs
- ButtonFlatAdapter.cs
- XmlSchemaSubstitutionGroup.cs
- MatcherBuilder.cs
- RichTextBox.cs
- Triangle.cs
- Tokenizer.cs
- SendKeys.cs
- PreviewPageInfo.cs
- Mappings.cs
- CommandLibraryHelper.cs
- ListChangedEventArgs.cs
- DataRelationPropertyDescriptor.cs
- SplashScreen.cs
- LinearGradientBrush.cs
- ParameterExpression.cs
- WizardForm.cs
- ReadWriteObjectLock.cs
- TableLayoutPanel.cs
- DataSourceComponent.cs
- ProcessModuleCollection.cs
- ConnectionInterfaceCollection.cs
- PropertyStore.cs
- BaseProcessor.cs
- AnimationException.cs
- TemplateEditingService.cs
- OuterGlowBitmapEffect.cs
- IdentityManager.cs
- InvalidCastException.cs
- RelatedCurrencyManager.cs
- DeclaredTypeValidatorAttribute.cs
- WebPartUserCapability.cs
- ColumnMapVisitor.cs
- ResourcesBuildProvider.cs
- TranslateTransform3D.cs
- WebConfigurationManager.cs
- TypedReference.cs
- DeflateStream.cs
- Encoding.cs
- FontDriver.cs
- ContentIterators.cs
- DataColumnSelectionConverter.cs
- WebContext.cs
- FilteredAttributeCollection.cs
- DataGridViewRowPrePaintEventArgs.cs
- SectionUpdates.cs
- WeakEventManager.cs
- DockPattern.cs
- InvokeFunc.cs
- FileLogRecord.cs
- PerformanceCounterLib.cs
- input.cs
- AuthenticationModuleElement.cs
- ExpressionBuilderCollection.cs
- HttpResponseWrapper.cs
- HttpContext.cs
- EmbeddedMailObjectsCollection.cs