Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / IO / Ports / SerialPinChanges.cs / 1305376 / SerialPinChanges.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Type: SerialPinChange ** ** Purpose: Used to describe which pin has changed on a PinChanged event. ** ** Date: August 2002 ** ** ===========================================================*/ using Microsoft.Win32; namespace System.IO.Ports { public enum SerialPinChange { CtsChanged = NativeMethods.EV_CTS, DsrChanged = NativeMethods.EV_DSR, CDChanged = NativeMethods.EV_RLSD, Ring = NativeMethods.EV_RING, Break = NativeMethods.EV_BREAK, } public class SerialPinChangedEventArgs : EventArgs { private SerialPinChange pinChanged; internal SerialPinChangedEventArgs (SerialPinChange eventCode) { pinChanged = eventCode; } public SerialPinChange EventType { get { return pinChanged; } } } public delegate void SerialPinChangedEventHandler(object sender, SerialPinChangedEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Type: SerialPinChange ** ** Purpose: Used to describe which pin has changed on a PinChanged event. ** ** Date: August 2002 ** ** ===========================================================*/ using Microsoft.Win32; namespace System.IO.Ports { public enum SerialPinChange { CtsChanged = NativeMethods.EV_CTS, DsrChanged = NativeMethods.EV_DSR, CDChanged = NativeMethods.EV_RLSD, Ring = NativeMethods.EV_RING, Break = NativeMethods.EV_BREAK, } public class SerialPinChangedEventArgs : EventArgs { private SerialPinChange pinChanged; internal SerialPinChangedEventArgs (SerialPinChange eventCode) { pinChanged = eventCode; } public SerialPinChange EventType { get { return pinChanged; } } } public delegate void SerialPinChangedEventHandler(object sender, SerialPinChangedEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DynamicVirtualDiscoSearcher.cs
- XmlSerializerVersionAttribute.cs
- SwitchElementsCollection.cs
- ProfileGroupSettingsCollection.cs
- RuntimeConfigurationRecord.cs
- ImageIndexConverter.cs
- CollectionsUtil.cs
- ConsumerConnectionPointCollection.cs
- FixedPageProcessor.cs
- StringDictionary.cs
- RectAnimationBase.cs
- ServiceChannel.cs
- SqlTrackingService.cs
- RepeaterItemEventArgs.cs
- DiscoveryExceptionDictionary.cs
- ExpressionBuilder.cs
- XXXInfos.cs
- LabelLiteral.cs
- ProgressBarBrushConverter.cs
- ChannelTracker.cs
- ClientSettingsProvider.cs
- SpeechUI.cs
- CfgParser.cs
- TextElementEnumerator.cs
- BatchServiceHost.cs
- ColumnResizeAdorner.cs
- EditorPartChrome.cs
- ReadWriteObjectLock.cs
- KeyEvent.cs
- StructuredTypeEmitter.cs
- DataColumnMappingCollection.cs
- ToolStripStatusLabel.cs
- TdsParserSafeHandles.cs
- ConnectionStringsExpressionBuilder.cs
- SingleStorage.cs
- GuidConverter.cs
- ToolStripProgressBar.cs
- XmlQueryTypeFactory.cs
- ThemeConfigurationDialog.cs
- SourceFileInfo.cs
- CodeStatement.cs
- SqlCaseSimplifier.cs
- VisualStateManager.cs
- PointKeyFrameCollection.cs
- DataGridView.cs
- DataGridPageChangedEventArgs.cs
- DataGridViewRowHeaderCell.cs
- ParameterCollection.cs
- EventLogPermissionHolder.cs
- ToolStrip.cs
- PreProcessInputEventArgs.cs
- XmlReflectionMember.cs
- Wildcard.cs
- ChannelFactoryBase.cs
- UserControl.cs
- ControlIdConverter.cs
- StorageMappingItemLoader.cs
- RoleProviderPrincipal.cs
- TickBar.cs
- ListenerConnectionModeReader.cs
- MimeTypePropertyAttribute.cs
- DesignerVerb.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- XmlQualifiedName.cs
- DayRenderEvent.cs
- RequestBringIntoViewEventArgs.cs
- Calendar.cs
- NavigatorOutput.cs
- InfoCardArgumentException.cs
- DragEventArgs.cs
- ActivityBuilderXamlWriter.cs
- SecurityPolicySection.cs
- WindowsIdentity.cs
- XmlCDATASection.cs
- safex509handles.cs
- Normalizer.cs
- ButtonBaseAdapter.cs
- IChannel.cs
- OrderingQueryOperator.cs
- CustomTypeDescriptor.cs
- ExeConfigurationFileMap.cs
- TypeNameConverter.cs
- PageContentCollection.cs
- ListView.cs
- recordstatefactory.cs
- SpecialNameAttribute.cs
- FileLogRecordEnumerator.cs
- FileUtil.cs
- PersonalizationProviderCollection.cs
- TemplatedWizardStep.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CodeAssignStatement.cs
- ToolStripHighContrastRenderer.cs
- DataGridHeaderBorder.cs
- VersionedStreamOwner.cs
- RadioButtonFlatAdapter.cs
- FrugalMap.cs
- Int16.cs
- SafeNativeMethodsMilCoreApi.cs
- MorphHelper.cs