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
- DBDataPermission.cs
- SHA512.cs
- XmlAttributeAttribute.cs
- XmlWrappingWriter.cs
- ConfigsHelper.cs
- EntityContainerEmitter.cs
- RegexBoyerMoore.cs
- EntityDataSourceViewSchema.cs
- RegexCompilationInfo.cs
- SmiEventSink.cs
- PropertyItem.cs
- ToolStripSystemRenderer.cs
- COM2PropertyBuilderUITypeEditor.cs
- StylusButtonEventArgs.cs
- FrameAutomationPeer.cs
- Decoder.cs
- EntityConnection.cs
- TextEffectCollection.cs
- ColumnBinding.cs
- ContextMenu.cs
- SizeFConverter.cs
- CharacterBufferReference.cs
- MetadataItem.cs
- CodeDomDecompiler.cs
- ColorConvertedBitmapExtension.cs
- ControlSerializer.cs
- IteratorFilter.cs
- DBSqlParserColumnCollection.cs
- WindowsSecurityToken.cs
- WebUtil.cs
- TextEmbeddedObject.cs
- StringUtil.cs
- DataListComponentEditor.cs
- FilteredAttributeCollection.cs
- ProjectionCamera.cs
- AssociationTypeEmitter.cs
- CharKeyFrameCollection.cs
- CodeFieldReferenceExpression.cs
- Version.cs
- StreamGeometry.cs
- FixedSOMImage.cs
- Collection.cs
- SQLDoubleStorage.cs
- WinFormsSpinner.cs
- MenuItemStyleCollection.cs
- Viewport3DAutomationPeer.cs
- CompressedStack.cs
- NullReferenceException.cs
- NamespaceMapping.cs
- Tile.cs
- LazyTextWriterCreator.cs
- CoTaskMemHandle.cs
- PrimitiveType.cs
- FlowDocumentPage.cs
- FontWeight.cs
- StringResourceManager.cs
- NoneExcludedImageIndexConverter.cs
- DbConnectionHelper.cs
- MultiPageTextView.cs
- DataSetViewSchema.cs
- StreamResourceInfo.cs
- XmlChildEnumerator.cs
- DataTableExtensions.cs
- RSAPKCS1SignatureFormatter.cs
- ButtonField.cs
- ClientSettingsProvider.cs
- DateTimeConverter2.cs
- LineInfo.cs
- ReferentialConstraint.cs
- SqlCommand.cs
- ActiveXContainer.cs
- DotExpr.cs
- HorizontalAlignConverter.cs
- SqlDataSourceView.cs
- PrinterUnitConvert.cs
- RequestQueryProcessor.cs
- CallbackValidatorAttribute.cs
- DeflateEmulationStream.cs
- WorkflowApplicationAbortedException.cs
- WriteableBitmap.cs
- CharUnicodeInfo.cs
- MultipleViewPattern.cs
- PageSettings.cs
- UserControl.cs
- WindowsFont.cs
- SystemResources.cs
- Storyboard.cs
- CurrencyWrapper.cs
- PeerCollaborationPermission.cs
- GZipDecoder.cs
- CfgSemanticTag.cs
- SiteMapNode.cs
- SqlInternalConnectionTds.cs
- SiteMapNodeItem.cs
- TransformerTypeCollection.cs
- Behavior.cs
- OracleEncoding.cs
- PropertyBuilder.cs
- UrlPropertyAttribute.cs
- SqlBuilder.cs