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
- ISAPIRuntime.cs
- PropertySegmentSerializationProvider.cs
- DynamicMethod.cs
- WebPartManager.cs
- SamlAuthorizationDecisionClaimResource.cs
- DataContractSerializerElement.cs
- TabControl.cs
- UserControlCodeDomTreeGenerator.cs
- AppDomainEvidenceFactory.cs
- RelativeSource.cs
- DetailsView.cs
- IntSecurity.cs
- FileDataSourceCache.cs
- DesignRelation.cs
- MemoryStream.cs
- ImageIndexConverter.cs
- PowerStatus.cs
- CompiledXpathExpr.cs
- BookmarkList.cs
- FormViewDeletedEventArgs.cs
- Attribute.cs
- PolyLineSegment.cs
- DefaultMergeHelper.cs
- querybuilder.cs
- Trigger.cs
- SoapServerMethod.cs
- Image.cs
- MultipleViewProviderWrapper.cs
- RewritingValidator.cs
- ToolStripItemRenderEventArgs.cs
- CornerRadiusConverter.cs
- MobileControl.cs
- Compensation.cs
- AttachmentCollection.cs
- BezierSegment.cs
- SrgsSubset.cs
- UnsafeNativeMethods.cs
- TriggerCollection.cs
- DependencyObjectProvider.cs
- PageAsyncTask.cs
- LogSwitch.cs
- BamlTreeMap.cs
- Adorner.cs
- WindowsAuthenticationEventArgs.cs
- CompressedStack.cs
- ControlAdapter.cs
- CompositeDuplexBindingElementImporter.cs
- ValidationErrorEventArgs.cs
- TranslateTransform3D.cs
- PackWebResponse.cs
- SQLCharsStorage.cs
- HandoffBehavior.cs
- SymbolType.cs
- VirtualizingStackPanel.cs
- HtmlMeta.cs
- XmlILIndex.cs
- DrawListViewColumnHeaderEventArgs.cs
- XPathNavigatorReader.cs
- FileUtil.cs
- SingleConverter.cs
- RuntimeConfigLKG.cs
- SystemIPInterfaceStatistics.cs
- GeometryModel3D.cs
- XmlElementAttributes.cs
- VSWCFServiceContractGenerator.cs
- BackStopAuthenticationModule.cs
- MsmqIntegrationBinding.cs
- BoundField.cs
- ExtensionQuery.cs
- FloatUtil.cs
- XmlSigningNodeWriter.cs
- ReadOnlyCollectionBase.cs
- TemplatePagerField.cs
- DynamicArgumentDesigner.xaml.cs
- TextSelectionProcessor.cs
- DefaultDiscoveryServiceExtension.cs
- Registry.cs
- OleStrCAMarshaler.cs
- HashHelper.cs
- BaseCodePageEncoding.cs
- WmlTextViewAdapter.cs
- ClientSettings.cs
- MenuBindingsEditor.cs
- ConnectionConsumerAttribute.cs
- StylusLogic.cs
- ComPlusServiceHost.cs
- TableLayoutColumnStyleCollection.cs
- DescendantOverDescendantQuery.cs
- SettingsProviderCollection.cs
- OrderedDictionary.cs
- ByteKeyFrameCollection.cs
- ParameterRetriever.cs
- InstanceKeyNotReadyException.cs
- SortKey.cs
- MenuItem.cs
- Converter.cs
- Publisher.cs
- _ConnectOverlappedAsyncResult.cs
- InitializingNewItemEventArgs.cs
- VariableBinder.cs