Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / SelectedGridItemChangedEvent.cs / 1 / SelectedGridItemChangedEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.ComponentModel;
///
///
/// The event class that is created when the selected GridItem in the PropertyGrid is changed by the user.
///
public class SelectedGridItemChangedEventArgs : EventArgs {
private GridItem oldSelection;
private GridItem newSelection;
///
///
/// Constructs a SelectedGridItemChangedEventArgs object.
///
public SelectedGridItemChangedEventArgs(GridItem oldSel, GridItem newSel) {
this.oldSelection = oldSel;
this.newSelection = newSel;
}
///
///
/// The newly selected GridItem object
///
public GridItem NewSelection {
get {
return this.newSelection;
}
}
///
///
/// The previously selected GridItem object. This can be null.
///
public GridItem OldSelection {
get {
return this.oldSelection;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.ComponentModel;
///
///
/// The event class that is created when the selected GridItem in the PropertyGrid is changed by the user.
///
public class SelectedGridItemChangedEventArgs : EventArgs {
private GridItem oldSelection;
private GridItem newSelection;
///
///
/// Constructs a SelectedGridItemChangedEventArgs object.
///
public SelectedGridItemChangedEventArgs(GridItem oldSel, GridItem newSel) {
this.oldSelection = oldSel;
this.newSelection = newSel;
}
///
///
/// The newly selected GridItem object
///
public GridItem NewSelection {
get {
return this.newSelection;
}
}
///
///
/// The previously selected GridItem object. This can be null.
///
public GridItem OldSelection {
get {
return this.oldSelection;
}
}
}
}
// 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
- JapaneseCalendar.cs
- PageCache.cs
- ImageBrush.cs
- DbConnectionPoolIdentity.cs
- OracleLob.cs
- EntityDataSourceViewSchema.cs
- SiteMapDataSource.cs
- ConfigurationPropertyCollection.cs
- StringCollection.cs
- SessionPageStatePersister.cs
- TemplateControlCodeDomTreeGenerator.cs
- DirtyTextRange.cs
- WebPartTracker.cs
- ObjectSet.cs
- ScaleTransform3D.cs
- DesignerLoader.cs
- DesignUtil.cs
- Stackframe.cs
- ProtocolElementCollection.cs
- SimpleBitVector32.cs
- EntityObject.cs
- PeerInvitationResponse.cs
- Bezier.cs
- WindowProviderWrapper.cs
- DataGridColumnHeaderCollection.cs
- ResourceProperty.cs
- TrustSection.cs
- ProfileProvider.cs
- PropertyRef.cs
- ToolStripGrip.cs
- Filter.cs
- CssClassPropertyAttribute.cs
- BitmapFrameEncode.cs
- HMACSHA256.cs
- ResourceDictionary.cs
- WebPartConnectionCollection.cs
- ConnectorDragDropGlyph.cs
- CommandCollectionEditor.cs
- Int32Converter.cs
- XsdValidatingReader.cs
- PolyLineSegment.cs
- SystemDiagnosticsSection.cs
- HashLookup.cs
- BindingElementExtensionElement.cs
- Slider.cs
- OdbcStatementHandle.cs
- login.cs
- XmlSignatureProperties.cs
- Char.cs
- BridgeDataRecord.cs
- PropertyGrid.cs
- IncrementalHitTester.cs
- X509SubjectKeyIdentifierClause.cs
- AppSettingsReader.cs
- Win32.cs
- DesignerActionGlyph.cs
- DataPagerCommandEventArgs.cs
- MetabaseReader.cs
- TokenBasedSetEnumerator.cs
- PtsHost.cs
- WebControl.cs
- AdornerDecorator.cs
- StringFunctions.cs
- PointConverter.cs
- FormView.cs
- HandleCollector.cs
- XmlnsDefinitionAttribute.cs
- LineBreakRecord.cs
- HyperLinkField.cs
- SystemIPGlobalStatistics.cs
- COM2ExtendedUITypeEditor.cs
- DataGridViewRowsRemovedEventArgs.cs
- Processor.cs
- AuthenticationSection.cs
- Context.cs
- SelectionPatternIdentifiers.cs
- NameValueCollection.cs
- FacetValues.cs
- XsdValidatingReader.cs
- XmlSchemaSimpleTypeUnion.cs
- ExpressionNormalizer.cs
- Helper.cs
- BinaryUtilClasses.cs
- XmlDigitalSignatureProcessor.cs
- DesignerAttribute.cs
- SafePointer.cs
- ScriptingSectionGroup.cs
- OLEDB_Enum.cs
- Attributes.cs
- OracleDataAdapter.cs
- InvokeBase.cs
- ClaimComparer.cs
- SqlConnectionFactory.cs
- CanonicalFontFamilyReference.cs
- SelectionHighlightInfo.cs
- XPathEmptyIterator.cs
- VectorValueSerializer.cs
- DecoratedNameAttribute.cs
- RoutedEventArgs.cs
- XamlWriter.cs