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
- UpWmlMobileTextWriter.cs
- BamlVersionHeader.cs
- OutputCacheProfileCollection.cs
- ClientOptions.cs
- CompiledQueryCacheKey.cs
- ElasticEase.cs
- PlainXmlDeserializer.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Metafile.cs
- View.cs
- Config.cs
- recordstatefactory.cs
- SocketElement.cs
- SoapAttributes.cs
- TraceSection.cs
- DataKey.cs
- QuaternionAnimation.cs
- TextFormatterHost.cs
- NonParentingControl.cs
- SingleSelectRootGridEntry.cs
- SimpleFieldTemplateFactory.cs
- BaseTemplateBuildProvider.cs
- UnsafeNativeMethods.cs
- XmlSchemaExternal.cs
- FileLoadException.cs
- ACE.cs
- HtmlAnchor.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- InteropExecutor.cs
- selecteditemcollection.cs
- GroupItem.cs
- CapabilitiesSection.cs
- loginstatus.cs
- OpenTypeLayoutCache.cs
- Currency.cs
- SqlLiftWhereClauses.cs
- SQLRoleProvider.cs
- UriParserTemplates.cs
- BrowserDefinitionCollection.cs
- AdornerHitTestResult.cs
- HashMembershipCondition.cs
- GZipDecoder.cs
- StyleHelper.cs
- StringComparer.cs
- WebBrowserUriTypeConverter.cs
- SHA384Managed.cs
- ChtmlCommandAdapter.cs
- SqlUserDefinedTypeAttribute.cs
- SystemIPGlobalStatistics.cs
- ResourceFallbackManager.cs
- CursorConverter.cs
- EntityParameterCollection.cs
- RoleGroupCollection.cs
- BStrWrapper.cs
- SmtpReplyReaderFactory.cs
- HttpCachePolicyWrapper.cs
- IpcClientManager.cs
- Baml2006ReaderSettings.cs
- Int16Storage.cs
- DispatcherObject.cs
- DataGridViewRowStateChangedEventArgs.cs
- WebPartCloseVerb.cs
- CodeTypeDeclaration.cs
- Domain.cs
- COM2ICategorizePropertiesHandler.cs
- TemplatedMailWebEventProvider.cs
- TypeHelper.cs
- ResourcesGenerator.cs
- CompleteWizardStep.cs
- Int16.cs
- OdbcHandle.cs
- ConsoleCancelEventArgs.cs
- CaseStatement.cs
- CacheDict.cs
- DataSet.cs
- ToolStripManager.cs
- DateTimeValueSerializerContext.cs
- TextContainerHelper.cs
- SubMenuStyleCollection.cs
- DrawingBrush.cs
- JoinSymbol.cs
- SortExpressionBuilder.cs
- AutomationPropertyChangedEventArgs.cs
- DataGridCommandEventArgs.cs
- TextEditorCharacters.cs
- JoinGraph.cs
- ReadOnlyDictionary.cs
- TextEndOfLine.cs
- ServiceOperationParameter.cs
- ApplicationDirectory.cs
- InstanceView.cs
- ResizeGrip.cs
- SendParametersContent.cs
- GridView.cs
- JournalEntryStack.cs
- SerializationInfo.cs
- RuntimeIdentifierPropertyAttribute.cs
- DataObjectMethodAttribute.cs
- SettingsPropertyCollection.cs
- WorkflowStateRollbackService.cs