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
- XmlDictionary.cs
- MimeTypeAttribute.cs
- SubordinateTransaction.cs
- SupportsEventValidationAttribute.cs
- BitmapEffectState.cs
- SymbolDocumentInfo.cs
- Utils.cs
- FrameworkRichTextComposition.cs
- SafeNativeMethodsMilCoreApi.cs
- SmtpReplyReader.cs
- ObjectConverter.cs
- ObjectItemNoOpAssemblyLoader.cs
- SchemaMapping.cs
- FeatureSupport.cs
- SafeMILHandle.cs
- BinaryParser.cs
- ButtonFlatAdapter.cs
- TraceProvider.cs
- NamedPipeTransportElement.cs
- MSAAEventDispatcher.cs
- FileDialog_Vista.cs
- SolidBrush.cs
- ScriptServiceAttribute.cs
- PngBitmapDecoder.cs
- AuthenticationModulesSection.cs
- AssemblyGen.cs
- StringDictionaryCodeDomSerializer.cs
- DockPattern.cs
- SignedXmlDebugLog.cs
- NegotiateStream.cs
- AddInActivator.cs
- AppSettingsExpressionBuilder.cs
- SplitterCancelEvent.cs
- AdRotator.cs
- CultureMapper.cs
- HttpListener.cs
- MatrixStack.cs
- httpstaticobjectscollection.cs
- SqlBulkCopyColumnMappingCollection.cs
- DocumentSequenceHighlightLayer.cs
- HandledMouseEvent.cs
- SortAction.cs
- HttpHandlersSection.cs
- IteratorFilter.cs
- SqlPersonalizationProvider.cs
- QilTypeChecker.cs
- SymDocumentType.cs
- ImplicitInputBrush.cs
- DbException.cs
- XmlReader.cs
- StorageScalarPropertyMapping.cs
- OracleBFile.cs
- errorpatternmatcher.cs
- RewritingProcessor.cs
- ViewCellRelation.cs
- ValueTypeFixupInfo.cs
- DisplayNameAttribute.cs
- Gdiplus.cs
- ExpressionBuilderCollection.cs
- TableRowCollection.cs
- GeneralTransform2DTo3DTo2D.cs
- TimeSpanValidator.cs
- HtmlWindowCollection.cs
- AdornedElementPlaceholder.cs
- ShaperBuffers.cs
- DataGridTableStyleMappingNameEditor.cs
- TriggerActionCollection.cs
- StringOutput.cs
- DbParameterCollection.cs
- ContentType.cs
- EntityStoreSchemaGenerator.cs
- QuaternionKeyFrameCollection.cs
- WeakHashtable.cs
- ReferenceEqualityComparer.cs
- WebPartUtil.cs
- ProvidersHelper.cs
- ObjectIDGenerator.cs
- Mutex.cs
- QuaternionRotation3D.cs
- KeyGestureValueSerializer.cs
- SvcMapFileSerializer.cs
- TriState.cs
- Rect3D.cs
- ActivationArguments.cs
- MexBindingBindingCollectionElement.cs
- ImagingCache.cs
- PrivilegeNotHeldException.cs
- CacheVirtualItemsEvent.cs
- MergePropertyDescriptor.cs
- ChtmlLinkAdapter.cs
- SupportsEventValidationAttribute.cs
- X509Certificate2Collection.cs
- AudienceUriMode.cs
- DbProviderConfigurationHandler.cs
- CreateParams.cs
- DecimalAnimationBase.cs
- XPathNavigatorReader.cs
- WindowsComboBox.cs
- TextBoxAutoCompleteSourceConverter.cs
- ReceiveActivityDesigner.cs