Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Data / System / Data / DataViewSetting.cs / 1 / DataViewSetting.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.ComponentModel; [ TypeConverter((typeof(ExpandableObjectConverter))), ] #if WINFSInternalOnly internal #else public #endif class DataViewSetting { DataViewManager dataViewManager; DataTable table; string sort = ""; string rowFilter = ""; DataViewRowState rowStateFilter = DataViewRowState.CurrentRows; bool applyDefaultSort = false; internal DataViewSetting() {} internal DataViewSetting(string sort, string rowFilter, DataViewRowState rowStateFilter) { this.sort = sort; this.rowFilter = rowFilter; this.rowStateFilter = rowStateFilter; } public bool ApplyDefaultSort { get { return applyDefaultSort; } set { if (applyDefaultSort != value) { applyDefaultSort = value; } } } [Browsable(false)] public DataViewManager DataViewManager { get { return dataViewManager; } } internal void SetDataViewManager(DataViewManager dataViewManager) { if(this.dataViewManager != dataViewManager) { if(this.dataViewManager != null) { // throw exception here; } this.dataViewManager = dataViewManager; } } [Browsable(false)] public DataTable Table { get { return table; } } internal void SetDataTable(DataTable table) { if(this.table != table) { if(this.table != null) { // throw exception here; } this.table = table; } } public string RowFilter { get { return rowFilter; } set { if (value == null) value = ""; if (this.rowFilter != value) { this.rowFilter = value; } } } public DataViewRowState RowStateFilter { get { return rowStateFilter; } set { if (this.rowStateFilter != value) { this.rowStateFilter = value; } } } public string Sort { get { return sort; } set { if (value == null) value = ""; if (this.sort != value) { this.sort = value; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.ComponentModel; [ TypeConverter((typeof(ExpandableObjectConverter))), ] #if WINFSInternalOnly internal #else public #endif class DataViewSetting { DataViewManager dataViewManager; DataTable table; string sort = ""; string rowFilter = ""; DataViewRowState rowStateFilter = DataViewRowState.CurrentRows; bool applyDefaultSort = false; internal DataViewSetting() {} internal DataViewSetting(string sort, string rowFilter, DataViewRowState rowStateFilter) { this.sort = sort; this.rowFilter = rowFilter; this.rowStateFilter = rowStateFilter; } public bool ApplyDefaultSort { get { return applyDefaultSort; } set { if (applyDefaultSort != value) { applyDefaultSort = value; } } } [Browsable(false)] public DataViewManager DataViewManager { get { return dataViewManager; } } internal void SetDataViewManager(DataViewManager dataViewManager) { if(this.dataViewManager != dataViewManager) { if(this.dataViewManager != null) { // throw exception here; } this.dataViewManager = dataViewManager; } } [Browsable(false)] public DataTable Table { get { return table; } } internal void SetDataTable(DataTable table) { if(this.table != table) { if(this.table != null) { // throw exception here; } this.table = table; } } public string RowFilter { get { return rowFilter; } set { if (value == null) value = ""; if (this.rowFilter != value) { this.rowFilter = value; } } } public DataViewRowState RowStateFilter { get { return rowStateFilter; } set { if (this.rowStateFilter != value) { this.rowStateFilter = value; } } } public string Sort { get { return sort; } set { if (value == null) value = ""; if (this.sort != value) { this.sort = value; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlButton.cs
- BookmarkManager.cs
- CqlBlock.cs
- CollaborationHelperFunctions.cs
- TabItem.cs
- CodeArgumentReferenceExpression.cs
- EventProviderWriter.cs
- bidPrivateBase.cs
- InheritedPropertyChangedEventArgs.cs
- DataSourceProvider.cs
- DbDataReader.cs
- DocumentCollection.cs
- BaseTemplateBuildProvider.cs
- shaperfactoryquerycachekey.cs
- Int32CAMarshaler.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- ErrorEventArgs.cs
- ServiceManager.cs
- IListConverters.cs
- CommandDesigner.cs
- FontUnitConverter.cs
- BaseDataBoundControl.cs
- SemaphoreSecurity.cs
- XXXOnTypeBuilderInstantiation.cs
- ReadContentAsBinaryHelper.cs
- PeerNameRecord.cs
- DataGridPagerStyle.cs
- TextWriter.cs
- PingReply.cs
- SystemIPInterfaceStatistics.cs
- SelectionItemProviderWrapper.cs
- MemberInfoSerializationHolder.cs
- PhysicalFontFamily.cs
- SchemaTableOptionalColumn.cs
- _LazyAsyncResult.cs
- SolidColorBrush.cs
- WebCodeGenerator.cs
- DbDataReader.cs
- InfoCardRSACryptoProvider.cs
- wmiprovider.cs
- LinkTarget.cs
- Stroke.cs
- RegexGroupCollection.cs
- TcpTransportSecurity.cs
- FontFamilyIdentifier.cs
- DataMemberConverter.cs
- SiteMapNode.cs
- ContractUtils.cs
- CollaborationHelperFunctions.cs
- pingexception.cs
- XmlMessageFormatter.cs
- PriorityRange.cs
- TcpClientChannel.cs
- ThreadWorkerController.cs
- GraphicsContainer.cs
- TypeDescriptionProvider.cs
- DrawingContextWalker.cs
- FilteredDataSetHelper.cs
- ListControlStringCollectionEditor.cs
- MissingSatelliteAssemblyException.cs
- XmlSerializerOperationGenerator.cs
- AuthorizationContext.cs
- FamilyMap.cs
- ErrorWrapper.cs
- XmlFormatExtensionAttribute.cs
- WebResourceUtil.cs
- PersistenceException.cs
- VSDExceptions.cs
- SqlUnionizer.cs
- DataControlReferenceCollection.cs
- PointF.cs
- ComplusEndpointConfigContainer.cs
- WorkflowServiceHost.cs
- CollectionEditVerbManager.cs
- Line.cs
- Message.cs
- EndEvent.cs
- recordstate.cs
- WorkflowInstance.cs
- ContentPlaceHolder.cs
- TreeNodeMouseHoverEvent.cs
- ItemsControlAutomationPeer.cs
- SystemIPv4InterfaceProperties.cs
- DeferredReference.cs
- TextEditor.cs
- SiteMapNodeItemEventArgs.cs
- ReachDocumentSequenceSerializer.cs
- Configuration.cs
- DPAPIProtectedConfigurationProvider.cs
- SqlUtil.cs
- KeyInfo.cs
- Page.cs
- _ShellExpression.cs
- CatalogPartCollection.cs
- WebSysDisplayNameAttribute.cs
- ToolBarOverflowPanel.cs
- CfgParser.cs
- MatcherBuilder.cs
- AdornerPresentationContext.cs
- EndCreateSecurityTokenRequest.cs