Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Sys / System / IO / Ports / SerialPinChanges.cs / 1 / 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
- TabControl.cs
- QilGeneratorEnv.cs
- ProfileInfo.cs
- WebPartVerbCollection.cs
- CompositeActivityDesigner.cs
- DBCommand.cs
- ClientEventManager.cs
- HideDisabledControlAdapter.cs
- GridViewHeaderRowPresenter.cs
- Preprocessor.cs
- AvTraceDetails.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- DataGridViewBand.cs
- ReferenceService.cs
- TextEffect.cs
- DictionaryBase.cs
- Row.cs
- LinearGradientBrush.cs
- DPTypeDescriptorContext.cs
- SqlStatistics.cs
- ProfilePropertySettings.cs
- Boolean.cs
- LayoutUtils.cs
- WinFormsUtils.cs
- BuiltInPermissionSets.cs
- PropertyPushdownHelper.cs
- srgsitem.cs
- DrawingServices.cs
- Latin1Encoding.cs
- ReachVisualSerializerAsync.cs
- IdentifierCreationService.cs
- PeerName.cs
- NavigationEventArgs.cs
- EmptyEnumerable.cs
- WindowsListBox.cs
- IISUnsafeMethods.cs
- RegistryPermission.cs
- ToolStripContentPanel.cs
- XsdDateTime.cs
- bindurihelper.cs
- ValidatingReaderNodeData.cs
- DataTableReader.cs
- DefaultPropertyAttribute.cs
- UrlMapping.cs
- PropertyContainer.cs
- ManagedFilter.cs
- RectKeyFrameCollection.cs
- ClientConfigPaths.cs
- XmlSchemaObjectTable.cs
- SafeFileMappingHandle.cs
- GetIsBrowserClientRequest.cs
- IntellisenseTextBox.cs
- HierarchicalDataBoundControl.cs
- ValidationResult.cs
- SharedStream.cs
- _HeaderInfoTable.cs
- BaseInfoTable.cs
- OracleCommandSet.cs
- LinkConverter.cs
- BindingNavigator.cs
- Misc.cs
- WindowsEditBoxRange.cs
- Dictionary.cs
- MarshalDirectiveException.cs
- PauseStoryboard.cs
- InvalidAsynchronousStateException.cs
- DATA_BLOB.cs
- SerialStream.cs
- ConfigurationLocationCollection.cs
- XmlSignificantWhitespace.cs
- AppDomainFactory.cs
- CommandManager.cs
- TrackPointCollection.cs
- basecomparevalidator.cs
- messageonlyhwndwrapper.cs
- BaseDataBoundControlDesigner.cs
- GridViewColumn.cs
- BlurBitmapEffect.cs
- DefaultClaimSet.cs
- CodeCommentStatement.cs
- DataServiceConfiguration.cs
- SingleSelectRootGridEntry.cs
- CryptoHandle.cs
- PeerObject.cs
- TextTreePropertyUndoUnit.cs
- IdentityModelDictionary.cs
- XmlSchemaSearchPattern.cs
- XmlDomTextWriter.cs
- GetWinFXPath.cs
- TdsParser.cs
- TypeGeneratedEventArgs.cs
- DataExchangeServiceBinder.cs
- LabelLiteral.cs
- MergeExecutor.cs
- ImplicitInputBrush.cs
- Span.cs
- StylusPlugin.cs
- UiaCoreApi.cs
- PagePropertiesChangingEventArgs.cs
- HttpRuntimeSection.cs