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
- RegexReplacement.cs
- MinimizableAttributeTypeConverter.cs
- WebEncodingValidator.cs
- TemplateControl.cs
- BinaryNode.cs
- SatelliteContractVersionAttribute.cs
- ColumnCollection.cs
- ThreadInterruptedException.cs
- SupportsEventValidationAttribute.cs
- XmlValidatingReaderImpl.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- WebPartCatalogCloseVerb.cs
- DataBindingCollection.cs
- LinqDataSource.cs
- MimeParameterWriter.cs
- RemotingAttributes.cs
- BindingExpressionUncommonField.cs
- LayoutEngine.cs
- TaskScheduler.cs
- SQLInt32.cs
- HtmlForm.cs
- Margins.cs
- StaticContext.cs
- AssemblySettingAttributes.cs
- Mappings.cs
- TextFormatterImp.cs
- ClientRuntimeConfig.cs
- DbMetaDataFactory.cs
- UnaryExpression.cs
- PointIndependentAnimationStorage.cs
- TabControl.cs
- MetadataImporterQuotas.cs
- IisTraceWebEventProvider.cs
- DataBoundLiteralControl.cs
- EventSetterHandlerConverter.cs
- XmlDataSource.cs
- UncommonField.cs
- Decoder.cs
- VectorValueSerializer.cs
- WebSysDefaultValueAttribute.cs
- XPathBuilder.cs
- RadioButtonBaseAdapter.cs
- AspCompat.cs
- JournalEntryListConverter.cs
- IndexerNameAttribute.cs
- TreeView.cs
- QueryRewriter.cs
- ConfigurationFileMap.cs
- ClusterSafeNativeMethods.cs
- EndOfStreamException.cs
- SqlDataReader.cs
- DeviceSpecificDialogCachedState.cs
- CalendarDateChangedEventArgs.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- WinEventWrap.cs
- TypeConverter.cs
- WindowsAuthenticationModule.cs
- UnsafeNativeMethods.cs
- XmlSchemaComplexContentExtension.cs
- GridViewAutoFormat.cs
- DelegatingTypeDescriptionProvider.cs
- SelectedDatesCollection.cs
- ApplicationFileParser.cs
- ValueProviderWrapper.cs
- OdbcConnectionOpen.cs
- ScriptingJsonSerializationSection.cs
- TextBoxLine.cs
- PerformanceCounterManager.cs
- SqlDependency.cs
- Italic.cs
- ADRoleFactory.cs
- WsdlInspector.cs
- CommentGlyph.cs
- SelectedPathEditor.cs
- OleDbPropertySetGuid.cs
- initElementDictionary.cs
- TextBox.cs
- PTProvider.cs
- TrustManagerPromptUI.cs
- HotCommands.cs
- ImageBrush.cs
- LogEntryHeaderSerializer.cs
- BrowserCapabilitiesCodeGenerator.cs
- WebPartVerb.cs
- EnvelopedPkcs7.cs
- CallInfo.cs
- LineServicesCallbacks.cs
- SmtpNetworkElement.cs
- SingleConverter.cs
- ConstraintStruct.cs
- RpcAsyncResult.cs
- VisualStyleTypesAndProperties.cs
- LockedBorderGlyph.cs
- Vector3DValueSerializer.cs
- WorkflowRuntimeBehavior.cs
- SBCSCodePageEncoding.cs
- EntityDataSourceContextCreatingEventArgs.cs
- HtmlTitle.cs
- RenamedEventArgs.cs
- BoundField.cs