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
- SpellerStatusTable.cs
- KeyGestureValueSerializer.cs
- RelationshipWrapper.cs
- DiscoveryVersion.cs
- TextBlock.cs
- DataGridViewRowHeaderCell.cs
- TemplateGroupCollection.cs
- StyleModeStack.cs
- InvalidPrinterException.cs
- NextPreviousPagerField.cs
- TreeNodeStyle.cs
- RolePrincipal.cs
- CompensatableTransactionScopeActivityDesigner.cs
- VirtualPath.cs
- Connector.xaml.cs
- MimeMultiPart.cs
- IDispatchConstantAttribute.cs
- XmlSchemaSubstitutionGroup.cs
- CatalogPart.cs
- SiteMapPath.cs
- Identifier.cs
- GB18030Encoding.cs
- XmlSecureResolver.cs
- AdRotator.cs
- ToolStripItemTextRenderEventArgs.cs
- SHA1Cng.cs
- NaturalLanguageHyphenator.cs
- OleDbError.cs
- MasterPageParser.cs
- GB18030Encoding.cs
- TrackingProfileDeserializationException.cs
- XmlSerializerFactory.cs
- TypedReference.cs
- XPathScanner.cs
- StylusPoint.cs
- UserNameSecurityTokenProvider.cs
- EncryptedPackage.cs
- Base64WriteStateInfo.cs
- TypeToken.cs
- BitVector32.cs
- MultiPageTextView.cs
- TaskFormBase.cs
- Config.cs
- Operand.cs
- FileEnumerator.cs
- Convert.cs
- StylusShape.cs
- StringFunctions.cs
- TableItemPatternIdentifiers.cs
- wgx_exports.cs
- WindowsFormsHostPropertyMap.cs
- DataServiceExpressionVisitor.cs
- Transform.cs
- FontCacheUtil.cs
- ImageCodecInfo.cs
- HuffmanTree.cs
- IntegerFacetDescriptionElement.cs
- TouchDevice.cs
- SqlClientPermission.cs
- ItemCollectionEditor.cs
- ObjectNotFoundException.cs
- EntityDescriptor.cs
- KnowledgeBase.cs
- TreeChangeInfo.cs
- OutputCacheSettings.cs
- WmlTextBoxAdapter.cs
- HtmlSelect.cs
- UpdateTranslator.cs
- HwndSource.cs
- CorrelationActionMessageFilter.cs
- PenThreadWorker.cs
- Font.cs
- BinHexEncoding.cs
- SecurityContext.cs
- DBSchemaRow.cs
- HttpCookie.cs
- StringCollection.cs
- FrameworkContentElementAutomationPeer.cs
- Vector3DAnimationUsingKeyFrames.cs
- XmlHierarchicalEnumerable.cs
- SessionIDManager.cs
- TerminatorSinks.cs
- CellCreator.cs
- TargetInvocationException.cs
- QilParameter.cs
- ContentFilePart.cs
- sortedlist.cs
- DataGridViewRowEventArgs.cs
- XsdBuilder.cs
- WsatServiceCertificate.cs
- Vector3DCollection.cs
- StylusDownEventArgs.cs
- BuildProviderUtils.cs
- WindowVisualStateTracker.cs
- XNodeValidator.cs
- safelinkcollection.cs
- Parser.cs
- MetadataWorkspace.cs
- ListComponentEditor.cs
- TreeIterators.cs