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
- HashMembershipCondition.cs
- Query.cs
- SqlConnectionString.cs
- ResolveMatchesCD1.cs
- TextEndOfParagraph.cs
- ContentPropertyAttribute.cs
- AttributeCollection.cs
- _AuthenticationState.cs
- DbConnectionHelper.cs
- PathFigureCollection.cs
- AssemblyName.cs
- UrlEncodedParameterWriter.cs
- infer.cs
- KeySplineConverter.cs
- SqlWebEventProvider.cs
- _BasicClient.cs
- Color.cs
- ListBindableAttribute.cs
- SQLBinary.cs
- CommandID.cs
- WsdlInspector.cs
- MailBnfHelper.cs
- Matrix.cs
- SecuritySessionServerSettings.cs
- UnsafeNativeMethodsTablet.cs
- HostUtils.cs
- BindingUtils.cs
- ClipboardData.cs
- MetaForeignKeyColumn.cs
- TextAction.cs
- MarkupObject.cs
- TextRangeBase.cs
- ClosureBinding.cs
- OracleRowUpdatingEventArgs.cs
- Visitor.cs
- PropertyChangedEventManager.cs
- AttributeEmitter.cs
- StylusPointPropertyInfoDefaults.cs
- SessionPageStateSection.cs
- FileDetails.cs
- CollectionBase.cs
- FixedDocumentSequencePaginator.cs
- RootDesignerSerializerAttribute.cs
- OperationInvokerTrace.cs
- DbConvert.cs
- NameValueConfigurationElement.cs
- FormattedText.cs
- UniqueSet.cs
- HttpContext.cs
- CachedFontFamily.cs
- BinaryMethodMessage.cs
- BaseDataListComponentEditor.cs
- StickyNoteAnnotations.cs
- Transform3DGroup.cs
- ConsoleTraceListener.cs
- DbConnectionPool.cs
- ExpressionBuilder.cs
- AutomationElementIdentifiers.cs
- JapaneseLunisolarCalendar.cs
- ImportContext.cs
- WebPartsSection.cs
- OdbcUtils.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Triplet.cs
- SoapSchemaMember.cs
- XmlSchemaDocumentation.cs
- ButtonBaseDesigner.cs
- ComIntegrationManifestGenerator.cs
- TextModifierScope.cs
- ComboBox.cs
- SiteMap.cs
- ShaperBuffers.cs
- SystemMulticastIPAddressInformation.cs
- LambdaCompiler.Expressions.cs
- HeaderedContentControl.cs
- EditModeSwitchButton.cs
- KoreanCalendar.cs
- ResourceDescriptionAttribute.cs
- UrlAuthorizationModule.cs
- DefaultBindingPropertyAttribute.cs
- peersecuritysettings.cs
- StaticFileHandler.cs
- List.cs
- ConfigurationSettings.cs
- ListArgumentProvider.cs
- EastAsianLunisolarCalendar.cs
- PieceNameHelper.cs
- AvTrace.cs
- DataServiceResponse.cs
- FixUpCollection.cs
- ButtonFieldBase.cs
- ProxyHwnd.cs
- ConfigPathUtility.cs
- DescendantQuery.cs
- ByeMessageCD1.cs
- ToolStripComboBox.cs
- XmlDictionaryWriter.cs
- OleDbException.cs
- DataStorage.cs
- GroupBox.cs