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
- AssemblyNameUtility.cs
- XsdDuration.cs
- SinglePhaseEnlistment.cs
- Deserializer.cs
- ReadOnlyDictionary.cs
- WebColorConverter.cs
- AttachedPropertyBrowsableAttribute.cs
- SQLDecimal.cs
- StorageFunctionMapping.cs
- HiddenFieldPageStatePersister.cs
- DataGridViewControlCollection.cs
- UInt64.cs
- MdiWindowListStrip.cs
- VerificationException.cs
- HashCodeCombiner.cs
- Point3DCollection.cs
- BCryptSafeHandles.cs
- BamlTreeUpdater.cs
- AnimatedTypeHelpers.cs
- SchemaTableColumn.cs
- SqlConnectionFactory.cs
- AuthStoreRoleProvider.cs
- RawStylusInputCustomData.cs
- SocketAddress.cs
- ImageBrush.cs
- DataGridViewCellMouseEventArgs.cs
- WindowsClaimSet.cs
- Validator.cs
- GridViewRowEventArgs.cs
- CustomError.cs
- DataContractJsonSerializerOperationBehavior.cs
- XmlHierarchicalEnumerable.cs
- PropertyFilterAttribute.cs
- FontStyle.cs
- Bidi.cs
- EncodingTable.cs
- TextSpanModifier.cs
- PaginationProgressEventArgs.cs
- BooleanSwitch.cs
- TextInfo.cs
- DecoderFallbackWithFailureFlag.cs
- BitmapImage.cs
- WinEventWrap.cs
- ActivityMarkupSerializationProvider.cs
- EditingScope.cs
- XmlEncodedRawTextWriter.cs
- SqlRemoveConstantOrderBy.cs
- Metadata.cs
- SecurityUtils.cs
- XhtmlTextWriter.cs
- SetStateDesigner.cs
- ItemAutomationPeer.cs
- DataBoundControl.cs
- EntityFrameworkVersions.cs
- SemanticValue.cs
- StringComparer.cs
- RenderingBiasValidation.cs
- FileRecordSequenceCompletedAsyncResult.cs
- SystemFonts.cs
- Baml2006ReaderSettings.cs
- FormViewPagerRow.cs
- CustomValidator.cs
- ObjectSpanRewriter.cs
- DataTableNewRowEvent.cs
- StaticFileHandler.cs
- NotifyIcon.cs
- InternalsVisibleToAttribute.cs
- InputElement.cs
- WriteFileContext.cs
- PresentationAppDomainManager.cs
- DataListCommandEventArgs.cs
- Geometry3D.cs
- Predicate.cs
- Button.cs
- ProfilePropertyMetadata.cs
- ErrorFormatterPage.cs
- AccessDataSourceWizardForm.cs
- ConfigXmlElement.cs
- MatrixConverter.cs
- DateTimeHelper.cs
- RichTextBoxDesigner.cs
- TableParaClient.cs
- ArraySortHelper.cs
- ipaddressinformationcollection.cs
- TabControl.cs
- PersonalizationStateInfo.cs
- XamlPointCollectionSerializer.cs
- Parser.cs
- DrawingState.cs
- WebScriptServiceHost.cs
- Attributes.cs
- MediaContextNotificationWindow.cs
- MainMenu.cs
- WriteLine.cs
- LoginDesignerUtil.cs
- ConfigurationFileMap.cs
- Debug.cs
- FlagsAttribute.cs
- Padding.cs
- BaseAutoFormat.cs