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
- FrameworkContentElement.cs
- TriggerCollection.cs
- DataGridViewImageColumn.cs
- DiscreteKeyFrames.cs
- TextAnchor.cs
- CalendarDataBindingHandler.cs
- ParallelEnumerable.cs
- MenuItem.cs
- ObjectPersistData.cs
- Translator.cs
- WebPartConnectionsCloseVerb.cs
- SqlUdtInfo.cs
- TextTreeRootNode.cs
- SoapClientProtocol.cs
- QuaternionAnimation.cs
- DataTableReader.cs
- UnderstoodHeaders.cs
- JsonServiceDocumentSerializer.cs
- tooltip.cs
- XmlIncludeAttribute.cs
- HandoffBehavior.cs
- SafeHandles.cs
- XamlStyleSerializer.cs
- SymLanguageType.cs
- WebPartExportVerb.cs
- NativeConfigurationLoader.cs
- ManipulationDeltaEventArgs.cs
- ComboBox.cs
- AppSettings.cs
- UsernameTokenFactoryCredential.cs
- SimpleLine.cs
- XmlWriterTraceListener.cs
- ListenerSingletonConnectionReader.cs
- MethodMessage.cs
- TypeUtil.cs
- AccessViolationException.cs
- Pool.cs
- LayoutEvent.cs
- SimpleHandlerFactory.cs
- LocationUpdates.cs
- WeakHashtable.cs
- UrlMappingsModule.cs
- DataRowCollection.cs
- TimeSpan.cs
- DataBoundControl.cs
- SymbolResolver.cs
- NotifyIcon.cs
- DesignerFrame.cs
- ListSortDescription.cs
- ContentHostHelper.cs
- TextDocumentView.cs
- MetaChildrenColumn.cs
- DynamicResourceExtension.cs
- CreateSequence.cs
- SafePEFileHandle.cs
- XmlWriterDelegator.cs
- RequestResizeEvent.cs
- Selection.cs
- HTMLTagNameToTypeMapper.cs
- PartitionResolver.cs
- SafeArrayTypeMismatchException.cs
- _NegotiateClient.cs
- XmlSchemaGroup.cs
- TextEvent.cs
- MenuRendererStandards.cs
- Dynamic.cs
- Trigger.cs
- RootProfilePropertySettingsCollection.cs
- DirectionalLight.cs
- _FtpDataStream.cs
- Line.cs
- XmlBinaryWriterSession.cs
- OperationGenerator.cs
- DoubleLinkList.cs
- ApplicationId.cs
- DoubleCollectionValueSerializer.cs
- Fx.cs
- HtmlShimManager.cs
- HttpHeaderCollection.cs
- PtsPage.cs
- PropertyNames.cs
- EditorPartChrome.cs
- Int32Storage.cs
- TextRange.cs
- CaseStatement.cs
- SmiEventStream.cs
- SignatureResourcePool.cs
- NetTcpBindingCollectionElement.cs
- DataGridPageChangedEventArgs.cs
- BitmapEffectState.cs
- SemanticResultKey.cs
- FacetDescriptionElement.cs
- DataControlCommands.cs
- InputGestureCollection.cs
- Translator.cs
- ClientConfigurationHost.cs
- Byte.cs
- Clock.cs
- SafeNativeMethodsMilCoreApi.cs
- PropertyManager.cs