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
- SecurityCriticalDataForSet.cs
- TextRunCache.cs
- SourceCollection.cs
- InfiniteIntConverter.cs
- XmlDownloadManager.cs
- DataGridViewSortCompareEventArgs.cs
- DefaultObjectMappingItemCollection.cs
- PeerServiceMessageContracts.cs
- InternalCompensate.cs
- XmlAtomicValue.cs
- PropertyToken.cs
- Baml2006KnownTypes.cs
- WarningException.cs
- ExeContext.cs
- AxisAngleRotation3D.cs
- RuntimeHelpers.cs
- UserControl.cs
- PersonalizationProvider.cs
- WaitHandleCannotBeOpenedException.cs
- ColumnMapVisitor.cs
- SectionXmlInfo.cs
- ConnectivityStatus.cs
- WebResourceUtil.cs
- ManualWorkflowSchedulerService.cs
- RegisteredHiddenField.cs
- SemanticResolver.cs
- panel.cs
- SQLSingle.cs
- HttpServerChannel.cs
- SettingsSavedEventArgs.cs
- ContentElementAutomationPeer.cs
- ProfileParameter.cs
- TreeNodeStyle.cs
- MediaEntryAttribute.cs
- TextElementAutomationPeer.cs
- HtmlInputHidden.cs
- RegexMatchCollection.cs
- CharacterMetricsDictionary.cs
- LinqDataSourceSelectEventArgs.cs
- Baml2006Reader.cs
- IsolatedStorageFileStream.cs
- CaseDesigner.xaml.cs
- TablePattern.cs
- xml.cs
- ResizeGrip.cs
- WebPartCancelEventArgs.cs
- DataRecordObjectView.cs
- QueuePathDialog.cs
- DependencyPropertyKind.cs
- TaiwanCalendar.cs
- TreeNode.cs
- BulletedListDesigner.cs
- DynamicPropertyReader.cs
- FontStyleConverter.cs
- Mouse.cs
- GeneralTransform3D.cs
- SqlException.cs
- Transform3DGroup.cs
- ImpersonateTokenRef.cs
- SqlFlattener.cs
- PerformanceCounterPermissionEntryCollection.cs
- TableItemPattern.cs
- SortedDictionary.cs
- WebPartMinimizeVerb.cs
- LocalBuilder.cs
- UnmanagedMarshal.cs
- EllipseGeometry.cs
- BoundConstants.cs
- Codec.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- Oid.cs
- DisplayMemberTemplateSelector.cs
- VirtualizingPanel.cs
- TextServicesDisplayAttributePropertyRanges.cs
- CodeTypeMemberCollection.cs
- SerializerProvider.cs
- GACMembershipCondition.cs
- BindableAttribute.cs
- BitSet.cs
- PackUriHelper.cs
- Line.cs
- RangeValuePattern.cs
- StandardCommands.cs
- KnowledgeBase.cs
- DesignTimeData.cs
- ProxyFragment.cs
- MinimizableAttributeTypeConverter.cs
- MarkerProperties.cs
- NamespaceDecl.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ImageField.cs
- SqlDataSourceTableQuery.cs
- CustomAttributeSerializer.cs
- DiagnosticTraceSource.cs
- EllipticalNodeOperations.cs
- FunctionImportMapping.cs
- OdbcCommand.cs
- Axis.cs
- Range.cs
- Action.cs