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
- UnmanagedHandle.cs
- ReadOnlyDataSourceView.cs
- ResourceSet.cs
- SoapIncludeAttribute.cs
- CodeConditionStatement.cs
- RSAOAEPKeyExchangeFormatter.cs
- SelectedGridItemChangedEvent.cs
- WebControl.cs
- Pkcs7Signer.cs
- HMAC.cs
- FieldMetadata.cs
- OverrideMode.cs
- IndentedWriter.cs
- Propagator.JoinPropagator.cs
- SqlConnectionString.cs
- SafeFindHandle.cs
- XPathNodeHelper.cs
- RecognizerInfo.cs
- CodeSnippetExpression.cs
- XMLSchema.cs
- XsltArgumentList.cs
- DocumentReferenceCollection.cs
- PropertyTab.cs
- EntityProxyTypeInfo.cs
- XPathAxisIterator.cs
- KeyedHashAlgorithm.cs
- RecognizedPhrase.cs
- PageAction.cs
- DataControlReference.cs
- AssociatedControlConverter.cs
- PersonalizableAttribute.cs
- ExceptionCollection.cs
- PeerInvitationResponse.cs
- InheritedPropertyChangedEventArgs.cs
- FontFamily.cs
- XmlDocument.cs
- Rect3DValueSerializer.cs
- SingleSelectRootGridEntry.cs
- EnumBuilder.cs
- FrameworkContentElementAutomationPeer.cs
- OutputCache.cs
- MemberHolder.cs
- CheckedListBox.cs
- AbstractExpressions.cs
- XPathBuilder.cs
- SemanticResolver.cs
- SqlTypesSchemaImporter.cs
- HiddenFieldPageStatePersister.cs
- ValueUnavailableException.cs
- TdsParser.cs
- LogicalExpr.cs
- TextBox.cs
- ResourceProperty.cs
- HeaderCollection.cs
- PolyLineSegment.cs
- SendMailErrorEventArgs.cs
- SecurityRuntime.cs
- PersonalizableTypeEntry.cs
- EntityKey.cs
- WindowsListBox.cs
- PackageStore.cs
- ManipulationDelta.cs
- ChildrenQuery.cs
- DoubleLinkListEnumerator.cs
- Identity.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- XslAst.cs
- TraceEventCache.cs
- AndCondition.cs
- XmlILIndex.cs
- ServiceMetadataBehavior.cs
- SQLGuid.cs
- HtmlControl.cs
- SynchronizedCollection.cs
- PermissionAttributes.cs
- ErrorWebPart.cs
- EventMappingSettings.cs
- clipboard.cs
- SqlInternalConnection.cs
- SerialReceived.cs
- DocumentGridPage.cs
- MouseActionValueSerializer.cs
- QuadTree.cs
- CompositeActivityMarkupSerializer.cs
- ConnectionManagementSection.cs
- StronglyTypedResourceBuilder.cs
- mongolianshape.cs
- TagPrefixInfo.cs
- TableCellAutomationPeer.cs
- AudioSignalProblemOccurredEventArgs.cs
- HtmlWindowCollection.cs
- DesignerToolStripControlHost.cs
- SamlDelegatingWriter.cs
- XmlAttributeProperties.cs
- AjaxFrameworkAssemblyAttribute.cs
- Menu.cs
- XMLSchema.cs
- Decimal.cs
- MissingSatelliteAssemblyException.cs
- TogglePatternIdentifiers.cs