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
- CompilerGeneratedAttribute.cs
- COM2PropertyDescriptor.cs
- PrintPreviewDialog.cs
- _LocalDataStoreMgr.cs
- ConnectionStringSettingsCollection.cs
- RootBrowserWindow.cs
- ManagedCodeMarkers.cs
- RTLAwareMessageBox.cs
- CodeCompiler.cs
- Journal.cs
- IdentitySection.cs
- AjaxFrameworkAssemblyAttribute.cs
- ProcessHostFactoryHelper.cs
- SwitchElementsCollection.cs
- DataRelationCollection.cs
- Int64AnimationBase.cs
- SimpleHandlerFactory.cs
- ShaperBuffers.cs
- _LocalDataStoreMgr.cs
- DeviceFiltersSection.cs
- ExtensionDataObject.cs
- SoapFault.cs
- EventPrivateKey.cs
- DocumentEventArgs.cs
- PreProcessInputEventArgs.cs
- SmiEventSink.cs
- TransformDescriptor.cs
- SmiGettersStream.cs
- ListView.cs
- DataGridRowDetailsEventArgs.cs
- XmlUtil.cs
- DataSetSchema.cs
- TextChange.cs
- GB18030Encoding.cs
- SByteStorage.cs
- EntityContainerEntitySet.cs
- SiteMembershipCondition.cs
- VectorCollectionConverter.cs
- InputLangChangeRequestEvent.cs
- TypeDescriptionProvider.cs
- FormView.cs
- RoleService.cs
- ActivationServices.cs
- ErrorRuntimeConfig.cs
- MsmqIntegrationSecurityElement.cs
- Buffer.cs
- Expr.cs
- AsymmetricKeyExchangeDeformatter.cs
- WindowsUpDown.cs
- MutexSecurity.cs
- RightsManagementProvider.cs
- DeviceContexts.cs
- FontDifferentiator.cs
- WebHttpBindingElement.cs
- SendDesigner.xaml.cs
- ProfileEventArgs.cs
- BypassElement.cs
- Item.cs
- PerformanceCounterLib.cs
- AuthorizationRule.cs
- NullableIntAverageAggregationOperator.cs
- shaper.cs
- FrameworkElement.cs
- RegistryKey.cs
- ConfigurationSchemaErrors.cs
- OdbcPermission.cs
- TypeHelper.cs
- GenericIdentity.cs
- SoapExtensionTypeElement.cs
- Compiler.cs
- XmlName.cs
- NonVisualControlAttribute.cs
- WindowInteropHelper.cs
- GroupBoxRenderer.cs
- DurationConverter.cs
- ConvertEvent.cs
- COM2ExtendedBrowsingHandler.cs
- QilList.cs
- Collection.cs
- PerspectiveCamera.cs
- ActivationServices.cs
- SqlConnection.cs
- SqlError.cs
- ConfigXmlWhitespace.cs
- BCLDebug.cs
- EtwTrace.cs
- DefinitionUpdate.cs
- RegexInterpreter.cs
- TimeSpanHelper.cs
- Configuration.cs
- ManagementObject.cs
- TypeElement.cs
- IdentityNotMappedException.cs
- ReadWriteObjectLock.cs
- ButtonFieldBase.cs
- AttributeCollection.cs
- DBCSCodePageEncoding.cs
- FontSizeConverter.cs
- DataServiceRequest.cs
- RC2CryptoServiceProvider.cs