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
- EndpointDiscoveryBehavior.cs
- SqlMultiplexer.cs
- EncodingInfo.cs
- Int32Animation.cs
- RefreshPropertiesAttribute.cs
- StringAnimationBase.cs
- glyphs.cs
- CodeAccessSecurityEngine.cs
- ColorConverter.cs
- CrossContextChannel.cs
- CurrentChangingEventArgs.cs
- TraceSource.cs
- WebPartDescription.cs
- PreservationFileWriter.cs
- querybuilder.cs
- FlowDocumentReaderAutomationPeer.cs
- DateTimeUtil.cs
- ServiceDescriptionContext.cs
- SchemaTableOptionalColumn.cs
- CodeDOMUtility.cs
- _BufferOffsetSize.cs
- MarkupCompilePass2.cs
- HtmlTableCellCollection.cs
- SchemaCompiler.cs
- XmlILOptimizerVisitor.cs
- SqlDataReader.cs
- Domain.cs
- DataGridRow.cs
- OleDbInfoMessageEvent.cs
- HtmlShim.cs
- SQLCharsStorage.cs
- TouchFrameEventArgs.cs
- OneOfElement.cs
- AutomationProperties.cs
- precedingquery.cs
- Bold.cs
- HtmlControlPersistable.cs
- CodeBlockBuilder.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- StrokeDescriptor.cs
- LayoutEvent.cs
- Ops.cs
- ThreadExceptionEvent.cs
- BindingCollection.cs
- FixedTextView.cs
- PersistenceTypeAttribute.cs
- Serializer.cs
- Attributes.cs
- AppliedDeviceFiltersDialog.cs
- MSAAWinEventWrap.cs
- CompositeCollectionView.cs
- SystemResources.cs
- XhtmlBasicValidatorAdapter.cs
- ObjectDataSourceMethodEventArgs.cs
- PopOutPanel.cs
- SignatureToken.cs
- StaticContext.cs
- FieldMetadata.cs
- ScopeCollection.cs
- DrawingState.cs
- XXXInfos.cs
- FrameworkElementFactoryMarkupObject.cs
- ToolStripTextBox.cs
- StateValidator.cs
- AspNetSynchronizationContext.cs
- _TLSstream.cs
- DataGridItemEventArgs.cs
- ModulesEntry.cs
- ServiceContractViewControl.cs
- PathParser.cs
- DrawingContextWalker.cs
- InheritanceContextHelper.cs
- BaseAddressElement.cs
- UIElementCollection.cs
- ADRole.cs
- BitmapEffectInputConnector.cs
- CodeNamespace.cs
- StylusPointDescription.cs
- unitconverter.cs
- GraphicsContext.cs
- DropShadowEffect.cs
- EntityDesignerDataSourceView.cs
- TcpChannelFactory.cs
- CfgArc.cs
- WebPartAddingEventArgs.cs
- SecureConversationVersion.cs
- SecurityContext.cs
- recordstatescratchpad.cs
- AppDomainInstanceProvider.cs
- DataContractJsonSerializer.cs
- RichTextBox.cs
- SizeAnimation.cs
- Buffer.cs
- SslStreamSecurityElement.cs
- StylusPointPropertyId.cs
- ConsoleEntryPoint.cs
- GlyphsSerializer.cs
- MessageSecurityException.cs
- WindowAutomationPeer.cs
- SynchronizingStream.cs