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
- RuntimeConfigLKG.cs
- DataGridViewDesigner.cs
- NavigationProgressEventArgs.cs
- Renderer.cs
- LinearKeyFrames.cs
- PhoneCallDesigner.cs
- Attributes.cs
- DeleteHelper.cs
- EventSourceCreationData.cs
- TimeSpanValidatorAttribute.cs
- _NetRes.cs
- WebPartHelpVerb.cs
- HiddenFieldDesigner.cs
- Variable.cs
- AutoCompleteStringCollection.cs
- DbConnectionPoolIdentity.cs
- SecurityRuntime.cs
- DeclaredTypeElement.cs
- CanonicalFontFamilyReference.cs
- VisualBrush.cs
- ActivityDesignerAccessibleObject.cs
- XmlILConstructAnalyzer.cs
- SqlExpander.cs
- CompModHelpers.cs
- CalendarDateRangeChangingEventArgs.cs
- InputQueue.cs
- ImageMapEventArgs.cs
- SqlClientWrapperSmiStream.cs
- TreeNodeStyle.cs
- RuleSettings.cs
- WebPartUtil.cs
- TemplateControlCodeDomTreeGenerator.cs
- ContractCodeDomInfo.cs
- HighContrastHelper.cs
- DataGridViewRowHeaderCell.cs
- CompilationUtil.cs
- RowToFieldTransformer.cs
- NetCodeGroup.cs
- ExtendedProperty.cs
- AxDesigner.cs
- DataPagerFieldCommandEventArgs.cs
- CustomAttributeFormatException.cs
- ComponentManagerBroker.cs
- AudioSignalProblemOccurredEventArgs.cs
- MailDefinitionBodyFileNameEditor.cs
- UriSection.cs
- Lookup.cs
- SymbolType.cs
- TypeDescriptionProvider.cs
- XmlSchemaAnnotated.cs
- Site.cs
- SemanticBasicElement.cs
- KnownIds.cs
- KeyNotFoundException.cs
- WorkflowValidationFailedException.cs
- PixelFormat.cs
- KnowledgeBase.cs
- ProfilePropertyMetadata.cs
- SiteMapNodeCollection.cs
- ActiveXSite.cs
- IntegerValidatorAttribute.cs
- UnsafePeerToPeerMethods.cs
- ResourceAttributes.cs
- SoapTypeAttribute.cs
- ToolStripItemBehavior.cs
- XmlAutoDetectWriter.cs
- HttpContext.cs
- DictionaryMarkupSerializer.cs
- AttributeSetAction.cs
- TreeView.cs
- XmlDataImplementation.cs
- WebBodyFormatMessageProperty.cs
- BmpBitmapEncoder.cs
- FormatterServicesNoSerializableCheck.cs
- DBSqlParserTable.cs
- webclient.cs
- TableStyle.cs
- RequestContextBase.cs
- SessionIDManager.cs
- SourceFilter.cs
- StructureChangedEventArgs.cs
- StringComparer.cs
- FrugalList.cs
- TransformedBitmap.cs
- VersionPair.cs
- SemaphoreFullException.cs
- EmissiveMaterial.cs
- ProcessHostFactoryHelper.cs
- _Events.cs
- CompoundFileIOPermission.cs
- ModelUIElement3D.cs
- TextEditorThreadLocalStore.cs
- DataColumnMapping.cs
- DataBindingExpressionBuilder.cs
- Classification.cs
- ReadOnlyCollectionBase.cs
- ImplicitInputBrush.cs
- PageParserFilter.cs
- EventProperty.cs
- TableItemPatternIdentifiers.cs