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
- FileLoadException.cs
- Literal.cs
- IPipelineRuntime.cs
- MiniMapControl.xaml.cs
- SQLGuidStorage.cs
- SpellerStatusTable.cs
- cookieexception.cs
- NativeBuffer.cs
- XmlSerializerFactory.cs
- WebBrowserNavigatingEventHandler.cs
- TextServicesHost.cs
- StructuralCache.cs
- EntityModelBuildProvider.cs
- XmlSchemaComplexType.cs
- ProvideValueServiceProvider.cs
- OleDbDataReader.cs
- XmlDownloadManager.cs
- StrongTypingException.cs
- SqlRowUpdatedEvent.cs
- LongSumAggregationOperator.cs
- ObjectToken.cs
- SelectionEditor.cs
- DocumentReferenceCollection.cs
- SqlMethodTransformer.cs
- OnOperation.cs
- RoleManagerModule.cs
- PenLineCapValidation.cs
- FaultException.cs
- TreeNodeEventArgs.cs
- TopClause.cs
- ReturnEventArgs.cs
- AllowedAudienceUriElement.cs
- BuildProvider.cs
- ConvertEvent.cs
- SqlClientMetaDataCollectionNames.cs
- SchemaImporterExtension.cs
- WriteableBitmap.cs
- PlainXmlDeserializer.cs
- ReflectionPermission.cs
- RewritingProcessor.cs
- SchemaTableColumn.cs
- SqlLiftIndependentRowExpressions.cs
- DesignTimeTemplateParser.cs
- MessageQueue.cs
- ServiceDescriptionReflector.cs
- SecurityRuntime.cs
- BuiltInExpr.cs
- HttpModulesSection.cs
- WebConvert.cs
- SqlUserDefinedTypeAttribute.cs
- PeerApplication.cs
- UrlPath.cs
- NetworkCredential.cs
- Point.cs
- DCSafeHandle.cs
- DTCTransactionManager.cs
- XmlSchemaSubstitutionGroup.cs
- SystemWebCachingSectionGroup.cs
- ClockController.cs
- GeneralTransform3DGroup.cs
- DiagnosticTrace.cs
- GPRECTF.cs
- WhitespaceRuleReader.cs
- ClaimComparer.cs
- CodeDomLoader.cs
- PathFigure.cs
- backend.cs
- EventSinkHelperWriter.cs
- HttpResponseInternalWrapper.cs
- PathGradientBrush.cs
- FixedDSBuilder.cs
- ConfigViewGenerator.cs
- ReturnEventArgs.cs
- XmlUtil.cs
- TemplateField.cs
- ClientTarget.cs
- DBBindings.cs
- APCustomTypeDescriptor.cs
- PropertyChange.cs
- StringFunctions.cs
- _CookieModule.cs
- HttpListenerPrefixCollection.cs
- ResourceDisplayNameAttribute.cs
- ControlSerializer.cs
- PeerNameRegistration.cs
- HighContrastHelper.cs
- ProcessThreadCollection.cs
- ClientSession.cs
- Rule.cs
- SqlDataSourceQueryEditorForm.cs
- DataGridCaption.cs
- ReadOnlyMetadataCollection.cs
- PersistNameAttribute.cs
- Compiler.cs
- VarInfo.cs
- CannotUnloadAppDomainException.cs
- WebPartRestoreVerb.cs
- HttpHandlersSection.cs
- WhitespaceRuleLookup.cs
- InternalsVisibleToAttribute.cs