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
- PrintController.cs
- TypeLibConverter.cs
- AbstractExpressions.cs
- Parser.cs
- WebScriptEnablingBehavior.cs
- WindowsAltTab.cs
- Choices.cs
- ProjectionCamera.cs
- TdsParserStateObject.cs
- StateItem.cs
- SystemUdpStatistics.cs
- mongolianshape.cs
- TypeElement.cs
- ColorConvertedBitmapExtension.cs
- MouseGestureValueSerializer.cs
- PropertyChangeTracker.cs
- UriParserTemplates.cs
- PeerPresenceInfo.cs
- InvokeMethodActivity.cs
- ObservableCollection.cs
- MemoryMappedFileSecurity.cs
- ByteFacetDescriptionElement.cs
- HttpBindingExtension.cs
- TextEvent.cs
- MatrixCamera.cs
- CreateUserErrorEventArgs.cs
- NetworkStream.cs
- DynamicValidatorEventArgs.cs
- UrlAuthFailedErrorFormatter.cs
- ShaderEffect.cs
- StateManagedCollection.cs
- StateInitialization.cs
- SystemColors.cs
- ReceiveReply.cs
- PtsContext.cs
- EqualityComparer.cs
- DesignerValidatorAdapter.cs
- PriorityItem.cs
- Int32AnimationBase.cs
- BinHexEncoder.cs
- SchemaImporterExtensionsSection.cs
- ControlCollection.cs
- StringExpressionSet.cs
- DataSourceSelectArguments.cs
- CodeDomLoader.cs
- DetailsViewPagerRow.cs
- TableRowGroupCollection.cs
- PasswordTextContainer.cs
- String.cs
- EdmComplexPropertyAttribute.cs
- SystemThemeKey.cs
- MediaContext.cs
- AppDomainProtocolHandler.cs
- PowerStatus.cs
- Literal.cs
- PrintPreviewControl.cs
- webclient.cs
- CodeMemberProperty.cs
- RowUpdatedEventArgs.cs
- TextDecoration.cs
- FileSystemInfo.cs
- cookiecollection.cs
- FixedElement.cs
- PropertyHelper.cs
- RegexNode.cs
- EncodingInfo.cs
- CodeRegionDirective.cs
- DashStyle.cs
- DetailsViewRow.cs
- WebPartManagerInternals.cs
- ApplicationActivator.cs
- HtmlTable.cs
- BrowserCapabilitiesCodeGenerator.cs
- ColumnMapTranslator.cs
- RegionInfo.cs
- Ipv6Element.cs
- NTAccount.cs
- IntSecurity.cs
- ParenExpr.cs
- WorkflowControlClient.cs
- SapiRecoContext.cs
- GlyphTypeface.cs
- ColorBlend.cs
- Int16KeyFrameCollection.cs
- DataList.cs
- Inline.cs
- ImportedNamespaceContextItem.cs
- PseudoWebRequest.cs
- DataColumnChangeEvent.cs
- XmlExtensionFunction.cs
- XPathArrayIterator.cs
- TreeNodeCollection.cs
- JapaneseCalendar.cs
- TileBrush.cs
- IgnoreFlushAndCloseStream.cs
- WorkflowOperationFault.cs
- SqlConnectionPoolProviderInfo.cs
- DataSvcMapFile.cs
- ChildChangedEventArgs.cs
- TabControlEvent.cs