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
- CompiledELinqQueryState.cs
- AccessViolationException.cs
- UserControlBuildProvider.cs
- EmptyCollection.cs
- RoutedEventHandlerInfo.cs
- RangeBase.cs
- FormViewPageEventArgs.cs
- CatalogPartCollection.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- DataGridViewBindingCompleteEventArgs.cs
- OperationInfoBase.cs
- BindingContext.cs
- DelayedRegex.cs
- SendSecurityHeaderElementContainer.cs
- TreeNode.cs
- BlobPersonalizationState.cs
- GatewayIPAddressInformationCollection.cs
- FixedSOMGroup.cs
- FocusWithinProperty.cs
- XmlNodeChangedEventArgs.cs
- Attributes.cs
- CodeObjectCreateExpression.cs
- TextRunCache.cs
- EditableTreeList.cs
- KeyTimeConverter.cs
- SystemResources.cs
- DocumentGrid.cs
- CompiledAction.cs
- MD5.cs
- DataGridTableCollection.cs
- Int16Storage.cs
- ScaleTransform.cs
- BlobPersonalizationState.cs
- GreenMethods.cs
- PerfService.cs
- PerformanceCounter.cs
- ActivityExecutionContext.cs
- ServiceParser.cs
- CommandHelpers.cs
- ConfigXmlWhitespace.cs
- MimeXmlImporter.cs
- PageThemeBuildProvider.cs
- AppDomainProtocolHandler.cs
- Journal.cs
- FormatConvertedBitmap.cs
- HandleRef.cs
- RegexCharClass.cs
- DataGridViewAutoSizeModeEventArgs.cs
- XmlNamespaceDeclarationsAttribute.cs
- RepeaterItem.cs
- XmlSerializerOperationGenerator.cs
- CaseInsensitiveComparer.cs
- FormsAuthenticationConfiguration.cs
- UIElementParagraph.cs
- Timer.cs
- WorkflowStateRollbackService.cs
- InsufficientExecutionStackException.cs
- TextTabProperties.cs
- RightsManagementErrorHandler.cs
- EpmAttributeNameBuilder.cs
- XmlValidatingReader.cs
- ConcurrencyMode.cs
- TypeSemantics.cs
- DurableMessageDispatchInspector.cs
- Pair.cs
- PlatformNotSupportedException.cs
- ListDictionaryInternal.cs
- BitStack.cs
- HttpModuleActionCollection.cs
- BaseValidator.cs
- CopyNamespacesAction.cs
- DataTransferEventArgs.cs
- StrokeNodeData.cs
- EntityRecordInfo.cs
- HwndHostAutomationPeer.cs
- UnhandledExceptionEventArgs.cs
- GlyphCollection.cs
- ReaderWriterLockWrapper.cs
- DbParameterCollectionHelper.cs
- IgnoreSectionHandler.cs
- CharStorage.cs
- TextBounds.cs
- ProviderConnectionPoint.cs
- HyperLinkStyle.cs
- UnsafeNativeMethods.cs
- ServiceMetadataContractBehavior.cs
- EraserBehavior.cs
- OrthographicCamera.cs
- DataException.cs
- RegexCode.cs
- SafeNativeMethodsMilCoreApi.cs
- FormatterServices.cs
- KeyEvent.cs
- MarshalDirectiveException.cs
- MonthChangedEventArgs.cs
- BindingGraph.cs
- Expressions.cs
- SQLDecimal.cs
- IPEndPoint.cs
- FormsAuthentication.cs