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
- SecurityHeaderLayout.cs
- MethodResolver.cs
- WebHeaderCollection.cs
- PassportAuthenticationEventArgs.cs
- HtmlPhoneCallAdapter.cs
- ActivityExecutionFilter.cs
- WindowsFormsLinkLabel.cs
- TypeUtil.cs
- HostingPreferredMapPath.cs
- SvcMapFile.cs
- SQLBytesStorage.cs
- BrowserCapabilitiesFactoryBase.cs
- AspNetCompatibilityRequirementsMode.cs
- DataViewListener.cs
- OutputCacheSettings.cs
- AtlasWeb.Designer.cs
- ConfigurationErrorsException.cs
- HttpWrapper.cs
- TextServicesCompartmentContext.cs
- InternalConfirm.cs
- HtmlPageAdapter.cs
- ThreadSafeList.cs
- HttpPostServerProtocol.cs
- ContextMenuService.cs
- MinMaxParagraphWidth.cs
- BamlResourceDeserializer.cs
- ADMembershipProvider.cs
- LiteralControl.cs
- BitmapSizeOptions.cs
- MonthCalendar.cs
- InkCanvasSelectionAdorner.cs
- NativeMethods.cs
- DBConcurrencyException.cs
- CubicEase.cs
- RadioButtonRenderer.cs
- ListSortDescription.cs
- AmbientLight.cs
- PageParserFilter.cs
- ReservationNotFoundException.cs
- DesignerFrame.cs
- ToolTipService.cs
- SecurityCredentialsManager.cs
- MenuBase.cs
- CallSiteOps.cs
- SQLStringStorage.cs
- XPathEmptyIterator.cs
- safelink.cs
- UIElement3D.cs
- SplashScreen.cs
- ExpressionConverter.cs
- Attachment.cs
- SqlStream.cs
- DiagnosticsConfigurationHandler.cs
- DispatchWrapper.cs
- SafeNativeMethods.cs
- XsltCompileContext.cs
- RenderCapability.cs
- WmlValidationSummaryAdapter.cs
- DbDataReader.cs
- LineInfo.cs
- CodeCommentStatement.cs
- OleDbCommand.cs
- ToolStripDesignerAvailabilityAttribute.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- OleDbDataAdapter.cs
- TextEditorLists.cs
- FileStream.cs
- BehaviorEditorPart.cs
- PointValueSerializer.cs
- EntryPointNotFoundException.cs
- XmlEnumAttribute.cs
- PageContent.cs
- FloaterParagraph.cs
- DocumentPageHost.cs
- GlyphRun.cs
- LabelInfo.cs
- CachingParameterInspector.cs
- SecurityTokenException.cs
- QueryGeneratorBase.cs
- BindingCompleteEventArgs.cs
- PreviewPageInfo.cs
- NavigationCommands.cs
- EntityException.cs
- IOThreadTimer.cs
- XmlConverter.cs
- PartialTrustVisibleAssemblyCollection.cs
- ResourceAssociationTypeEnd.cs
- RightsManagementEncryptionTransform.cs
- BevelBitmapEffect.cs
- HttpCacheParams.cs
- MultiPageTextView.cs
- ToolStripItemClickedEventArgs.cs
- TemplateBindingExpressionConverter.cs
- XmlSchemaAnyAttribute.cs
- RsaElement.cs
- _CookieModule.cs
- DataGridViewCellParsingEventArgs.cs
- EncoderNLS.cs
- MbpInfo.cs
- SafeUserTokenHandle.cs