Code:
/ FX-1434 / FX-1434 / 1.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
- InvalidPrinterException.cs
- serverconfig.cs
- GenericUriParser.cs
- _FixedSizeReader.cs
- StreamResourceInfo.cs
- CDSCollectionETWBCLProvider.cs
- HMACRIPEMD160.cs
- Point3DCollection.cs
- Helper.cs
- BooleanConverter.cs
- SafeHandle.cs
- Comparer.cs
- Timeline.cs
- dtdvalidator.cs
- GeneralTransform3DGroup.cs
- DataException.cs
- PathGradientBrush.cs
- VersionedStreamOwner.cs
- EpmCustomContentWriterNodeData.cs
- NotImplementedException.cs
- XpsSerializerWriter.cs
- DocumentPageTextView.cs
- AlignmentXValidation.cs
- SqlGatherProducedAliases.cs
- XmlSchemaSimpleTypeRestriction.cs
- ActivityScheduledRecord.cs
- CodeObject.cs
- SuppressIldasmAttribute.cs
- Nullable.cs
- DataGridViewComboBoxColumnDesigner.cs
- FileReader.cs
- GeneralTransform.cs
- NativeMethods.cs
- WebEventTraceProvider.cs
- ListViewEditEventArgs.cs
- XamlReader.cs
- Socket.cs
- XmlSchemaExternal.cs
- FormsAuthenticationUserCollection.cs
- InvalidComObjectException.cs
- DefaultEvaluationContext.cs
- AdRotatorDesigner.cs
- mda.cs
- ParameterCollection.cs
- ToolStripPanelRow.cs
- DependencyObjectType.cs
- EmptyElement.cs
- InternalConfigRoot.cs
- UnitySerializationHolder.cs
- ArithmeticException.cs
- CodeMemberMethod.cs
- X509ChainElement.cs
- OdbcErrorCollection.cs
- TypeExtensions.cs
- MetadataArtifactLoaderComposite.cs
- DbBuffer.cs
- InteropExecutor.cs
- UnsafePeerToPeerMethods.cs
- SmtpCommands.cs
- ManipulationDelta.cs
- SqlDataSourceCache.cs
- TextBoxView.cs
- InlineObject.cs
- MetadataArtifactLoaderCompositeResource.cs
- PingOptions.cs
- Int64Storage.cs
- ToolStripStatusLabel.cs
- InheritanceContextHelper.cs
- regiisutil.cs
- ObjectDataSourceChooseMethodsPanel.cs
- RolePrincipal.cs
- RoutingExtensionElement.cs
- SmtpNetworkElement.cs
- CodeGenerator.cs
- ClaimTypeElement.cs
- SmiEventStream.cs
- SiteMapDataSource.cs
- AbstractSvcMapFileLoader.cs
- Base64Encoder.cs
- ComAwareEventInfo.cs
- HuffCodec.cs
- RolePrincipal.cs
- TextDecorations.cs
- ChildDocumentBlock.cs
- BitmapFrameEncode.cs
- Blend.cs
- AliasedExpr.cs
- TextEndOfParagraph.cs
- PropertyDescriptor.cs
- WindowsGrip.cs
- HashSet.cs
- AppliedDeviceFiltersEditor.cs
- DataBoundControlAdapter.cs
- StringExpressionSet.cs
- XmlObjectSerializerReadContextComplex.cs
- ListBoxChrome.cs
- TableCell.cs
- _ListenerAsyncResult.cs
- NavigationPropertyEmitter.cs
- Base64Encoder.cs