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
- ToolbarAUtomationPeer.cs
- WebPartConnectionsEventArgs.cs
- XmlSignatureProperties.cs
- InternalCache.cs
- HostingEnvironmentSection.cs
- XmlDownloadManager.cs
- SerializationException.cs
- BitmapDownload.cs
- ScrollBar.cs
- ClientBuildManagerCallback.cs
- UshortList2.cs
- WizardDesigner.cs
- SafeEventLogWriteHandle.cs
- DataControlImageButton.cs
- Thumb.cs
- ContractsBCL.cs
- Identifier.cs
- HostedBindingBehavior.cs
- DbDataAdapter.cs
- CodeAccessSecurityEngine.cs
- Component.cs
- Utils.cs
- SqlDataSourceView.cs
- RepeatInfo.cs
- XmlCharType.cs
- FieldNameLookup.cs
- WindowsAuthenticationModule.cs
- TextDecoration.cs
- DoubleAnimationClockResource.cs
- WS2007FederationHttpBindingElement.cs
- BigInt.cs
- X509ScopedServiceCertificateElementCollection.cs
- RemoteWebConfigurationHost.cs
- Path.cs
- SqlDataSourceCustomCommandPanel.cs
- ConfigXmlText.cs
- DataStreamFromComStream.cs
- Utils.cs
- NominalTypeEliminator.cs
- ControllableStoryboardAction.cs
- DetailsViewUpdatedEventArgs.cs
- DataGridViewRowEventArgs.cs
- TrackingStringDictionary.cs
- WebPartTransformerAttribute.cs
- XmlStreamStore.cs
- EpmTargetTree.cs
- DesignerLoader.cs
- InstalledFontCollection.cs
- SecurityKeyUsage.cs
- SamlConstants.cs
- Frame.cs
- ObjectTag.cs
- x509store.cs
- FreezableCollection.cs
- HtmlImage.cs
- HyperLinkField.cs
- SqlSupersetValidator.cs
- BrowserPolicyValidator.cs
- ParenthesizePropertyNameAttribute.cs
- DataTemplate.cs
- Part.cs
- BamlRecords.cs
- BindingValueChangedEventArgs.cs
- StagingAreaInputItem.cs
- SqlUtil.cs
- HealthMonitoringSectionHelper.cs
- ToolStripSettings.cs
- InputLanguage.cs
- InstanceCreationEditor.cs
- OleStrCAMarshaler.cs
- TargetConverter.cs
- XmlDocumentSerializer.cs
- IssuanceLicense.cs
- TextBox.cs
- StreamUpgradeAcceptor.cs
- Executor.cs
- Attributes.cs
- GroupByExpressionRewriter.cs
- Compiler.cs
- baseshape.cs
- EntityObject.cs
- PLINQETWProvider.cs
- CompilerLocalReference.cs
- ContentElement.cs
- OpenTypeLayoutCache.cs
- OrderByQueryOptionExpression.cs
- BitmapEffectInput.cs
- RegexWorker.cs
- CharacterMetricsDictionary.cs
- DataGridTableCollection.cs
- TextViewSelectionProcessor.cs
- SettingsPropertyValueCollection.cs
- InternalPermissions.cs
- RequestCache.cs
- LayoutManager.cs
- AttributeProviderAttribute.cs
- PolyQuadraticBezierSegment.cs
- WebExceptionStatus.cs
- TemplateControl.cs
- ModelServiceImpl.cs