Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / System / data / design / TypedRowHandler.cs / 1 / TypedRowHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //----------------------------------------------------------------------------- namespace System.Data.Design { using System; using System.CodeDom; using System.Collections; using System.ComponentModel; using System.Data; using System.Reflection; internal sealed class TypedRowHandler { private TypedDataSourceCodeGenerator codeGenerator = null; private DesignTableCollection tables = null; private TypedRowGenerator rowGenerator = null; internal TypedRowHandler(TypedDataSourceCodeGenerator codeGenerator, DesignTableCollection tables) { this.codeGenerator = codeGenerator; this.tables = tables; this.rowGenerator = new TypedRowGenerator(codeGenerator); } internal TypedRowGenerator RowGenerator { get { return rowGenerator; } } internal void AddTypedRowEvents(CodeTypeDeclaration dataTableClass, string tableName) { DesignTable designTable = codeGenerator.TableHandler.Tables[tableName]; string rowClassName = designTable.GeneratorRowClassName; string rowEventHandlerName = designTable.GeneratorRowEvHandlerName; dataTableClass.Members.Add( CodeGenHelper.EventDecl( rowEventHandlerName, designTable.GeneratorRowChangingName ) ); dataTableClass.Members.Add( CodeGenHelper.EventDecl( rowEventHandlerName, designTable.GeneratorRowChangedName ) ); dataTableClass.Members.Add( CodeGenHelper.EventDecl( rowEventHandlerName, designTable.GeneratorRowDeletingName ) ); dataTableClass.Members.Add( CodeGenHelper.EventDecl( rowEventHandlerName, designTable.GeneratorRowDeletedName ) ); } internal void AddTypedRows(CodeTypeDeclaration dataSourceClass) { rowGenerator.GenerateRows(dataSourceClass); } internal void AddTypedRowEventHandlers(CodeTypeDeclaration dataSourceClass) { rowGenerator.GenerateTypedRowEventHandlers(dataSourceClass); } internal void AddTypedRowEventArgs(CodeTypeDeclaration dataSourceClass) { rowGenerator.GenerateTypedRowEventArgs(dataSourceClass); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DynamicDocumentPaginator.cs
- DataGridCell.cs
- AdjustableArrowCap.cs
- StylusPoint.cs
- EndPoint.cs
- PbrsForward.cs
- ItemCollectionEditor.cs
- WaitHandleCannotBeOpenedException.cs
- BooleanExpr.cs
- SafeCryptoKeyHandle.cs
- mansign.cs
- Zone.cs
- TypeSystemHelpers.cs
- HttpCacheVaryByContentEncodings.cs
- Guid.cs
- coordinatorscratchpad.cs
- ScrollContentPresenter.cs
- BuildProvider.cs
- TileModeValidation.cs
- ControlParameter.cs
- TimelineGroup.cs
- ConfigurationStrings.cs
- MarkupWriter.cs
- RightsManagementPermission.cs
- XMLDiffLoader.cs
- EdmRelationshipRoleAttribute.cs
- MachineKeySection.cs
- ErrorWebPart.cs
- DetailsViewUpdatedEventArgs.cs
- DictionaryEntry.cs
- ParallelEnumerableWrapper.cs
- PrinterResolution.cs
- UnknownBitmapDecoder.cs
- AsyncDataRequest.cs
- ExpressionEvaluator.cs
- GroupStyle.cs
- DataGridViewCellEventArgs.cs
- ParagraphVisual.cs
- InfoCardListRequest.cs
- CredentialCache.cs
- XmlDictionaryWriter.cs
- TextBoxBaseDesigner.cs
- ButtonField.cs
- KeyPressEvent.cs
- DbProviderFactoriesConfigurationHandler.cs
- UpDownEvent.cs
- ChannelSinkStacks.cs
- RegionData.cs
- Encoder.cs
- FastPropertyAccessor.cs
- MaskedTextBox.cs
- ClonableStack.cs
- HybridObjectCache.cs
- DataSourceUtil.cs
- MetadataUtilsSmi.cs
- IntegerValidator.cs
- WebPartVerbsEventArgs.cs
- localization.cs
- WhereQueryOperator.cs
- CapabilitiesUse.cs
- OpacityConverter.cs
- ImageClickEventArgs.cs
- DesignerCalendarAdapter.cs
- FloatSumAggregationOperator.cs
- PropertyPath.cs
- CodeFieldReferenceExpression.cs
- WrapPanel.cs
- WebEventCodes.cs
- DetailsViewDeleteEventArgs.cs
- COMException.cs
- Ipv6Element.cs
- Label.cs
- UIntPtr.cs
- SQLByte.cs
- MergeFilterQuery.cs
- ProfilePropertyMetadata.cs
- ScrollableControl.cs
- DbTransaction.cs
- IteratorFilter.cs
- SqlDataReaderSmi.cs
- BlobPersonalizationState.cs
- TemplatedControlDesigner.cs
- AssemblyBuilderData.cs
- SystemFonts.cs
- WebPartsPersonalizationAuthorization.cs
- Zone.cs
- FigureHelper.cs
- XmlReflectionMember.cs
- RoleExceptions.cs
- UnsafeNativeMethods.cs
- CornerRadiusConverter.cs
- ConfigurationStrings.cs
- EntityDataSourceWrapperCollection.cs
- ExpressionBuilderCollection.cs
- TextSelectionHighlightLayer.cs
- ImageSourceValueSerializer.cs
- ItemMap.cs
- DesignerVerbCollection.cs
- ListBoxItemWrapperAutomationPeer.cs
- ObjectQueryProvider.cs