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
- IPHostEntry.cs
- GridViewRowPresenterBase.cs
- SmtpReplyReaderFactory.cs
- ReadOnlyNameValueCollection.cs
- ConfigurationSection.cs
- GradientSpreadMethodValidation.cs
- SmiContextFactory.cs
- DecimalFormatter.cs
- ServiceMetadataExtension.cs
- RelationHandler.cs
- TypeBuilderInstantiation.cs
- KeysConverter.cs
- Currency.cs
- ExceptionUtil.cs
- TextPenaltyModule.cs
- EventLogStatus.cs
- TransactionFilter.cs
- TextBoxView.cs
- SelectionItemProviderWrapper.cs
- ByteStreamGeometryContext.cs
- FileSystemWatcher.cs
- CultureTable.cs
- ResXFileRef.cs
- DataGridViewCellStyle.cs
- AttributeQuery.cs
- OracleCommandBuilder.cs
- Exceptions.cs
- ListDataHelper.cs
- XmlAnyElementAttribute.cs
- WorkflowEnvironment.cs
- Floater.cs
- PassportAuthenticationEventArgs.cs
- WorkflowMarkupSerializer.cs
- PersonalizationStateInfoCollection.cs
- PropertyCondition.cs
- HttpContextServiceHost.cs
- SqlDataReader.cs
- VoiceChangeEventArgs.cs
- BaseParaClient.cs
- SchemaMapping.cs
- PageThemeParser.cs
- CorrelationManager.cs
- DataGridCell.cs
- ToolStripSeparator.cs
- Pkcs7Recipient.cs
- HScrollBar.cs
- WebPartDeleteVerb.cs
- PropVariant.cs
- PackWebRequest.cs
- NamespaceMapping.cs
- PersonalizationStateInfo.cs
- DescendentsWalkerBase.cs
- DurationConverter.cs
- IdentityHolder.cs
- DurableInstancingOptions.cs
- XmlSchemaSet.cs
- UnknownWrapper.cs
- SimpleWorkerRequest.cs
- SerializableAttribute.cs
- SkinBuilder.cs
- Exceptions.cs
- ScrollData.cs
- ProfileSettingsCollection.cs
- CursorConverter.cs
- Floater.cs
- HttpHandler.cs
- ZipFileInfoCollection.cs
- ParameterToken.cs
- TextBox.cs
- RoleManagerEventArgs.cs
- UIElementIsland.cs
- SchemaElementDecl.cs
- StrokeCollectionDefaultValueFactory.cs
- XmlExpressionDumper.cs
- BookmarkWorkItem.cs
- XmlSchemaSet.cs
- FileDialogPermission.cs
- TagNameToTypeMapper.cs
- FilteredXmlReader.cs
- RegexCapture.cs
- DataList.cs
- ExpressionBuilder.cs
- SiteMapDataSource.cs
- _NegoStream.cs
- ScaleTransform3D.cs
- DemultiplexingDispatchMessageFormatter.cs
- Transform.cs
- UnauthorizedWebPart.cs
- MembershipSection.cs
- Debug.cs
- UnsafeNativeMethods.cs
- ToolStripCustomTypeDescriptor.cs
- IxmlLineInfo.cs
- XsdDuration.cs
- AttributeUsageAttribute.cs
- GZipDecoder.cs
- ErrorsHelper.cs
- SessionPageStateSection.cs
- MetadataCache.cs
- SizeConverter.cs