Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- MsmqEncryptionAlgorithm.cs
- GridViewRowEventArgs.cs
- DelegatingConfigHost.cs
- ModelItemCollection.cs
- PersonalizationStateInfo.cs
- PopOutPanel.cs
- GlyphShapingProperties.cs
- Win32Exception.cs
- StorageEntitySetMapping.cs
- CodeDelegateCreateExpression.cs
- HwndMouseInputProvider.cs
- HttpStreamXmlDictionaryWriter.cs
- RuleRefElement.cs
- SRGSCompiler.cs
- PkcsUtils.cs
- HandleCollector.cs
- ConfigurationLocation.cs
- TabItem.cs
- EntityContainerRelationshipSet.cs
- StructuralComparisons.cs
- safePerfProviderHandle.cs
- AmbientProperties.cs
- EventHandlerList.cs
- KeyPullup.cs
- XamlToRtfWriter.cs
- MsmqIntegrationMessagePool.cs
- SoapInteropTypes.cs
- SynchronousSendBindingElement.cs
- PseudoWebRequest.cs
- PeerToPeerException.cs
- EditingMode.cs
- StateManager.cs
- FactoryMaker.cs
- DocComment.cs
- HwndAppCommandInputProvider.cs
- Compiler.cs
- IxmlLineInfo.cs
- DragDeltaEventArgs.cs
- WorkflowServiceBuildProvider.cs
- InnerItemCollectionView.cs
- TextChange.cs
- WSFederationHttpBindingElement.cs
- GroupAggregateExpr.cs
- Rotation3DKeyFrameCollection.cs
- ExpressionsCollectionConverter.cs
- TemplateLookupAction.cs
- XamlFigureLengthSerializer.cs
- Rect.cs
- TextTrailingCharacterEllipsis.cs
- SubMenuStyleCollection.cs
- DataObjectSettingDataEventArgs.cs
- CustomValidator.cs
- RoleGroup.cs
- CursorInteropHelper.cs
- NoResizeSelectionBorderGlyph.cs
- DataGridViewRowPrePaintEventArgs.cs
- PlanCompiler.cs
- LeaseManager.cs
- HitTestParameters3D.cs
- MonthCalendar.cs
- UpdateEventArgs.cs
- XmlValidatingReader.cs
- BitmapFrame.cs
- DataBinder.cs
- SqlReferenceCollection.cs
- HTMLTextWriter.cs
- OpenTypeLayout.cs
- SoapWriter.cs
- DockAndAnchorLayout.cs
- SchemaMapping.cs
- SchemaNotation.cs
- Effect.cs
- DataQuery.cs
- PropertyRecord.cs
- ProfileEventArgs.cs
- SpecialNameAttribute.cs
- CatalogPartChrome.cs
- AuthenticateEventArgs.cs
- ExpressionVisitorHelpers.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- PointIndependentAnimationStorage.cs
- SqlNotificationRequest.cs
- DataGridTableCollection.cs
- NonceToken.cs
- Drawing.cs
- PathTooLongException.cs
- OleDbDataAdapter.cs
- ExtractorMetadata.cs
- SqlHelper.cs
- WinFormsComponentEditor.cs
- HMACSHA256.cs
- HotSpot.cs
- ListSortDescriptionCollection.cs
- DesignerView.cs
- NoResizeHandleGlyph.cs
- CalendarTable.cs
- RenderCapability.cs
- DBConnectionString.cs
- EdmPropertyAttribute.cs
- _ProxyChain.cs