Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- StoreContentChangedEventArgs.cs
- Ticks.cs
- ExpressionBindingCollection.cs
- XPathNodeIterator.cs
- TextCollapsingProperties.cs
- EncoderNLS.cs
- XmlLanguage.cs
- TableItemProviderWrapper.cs
- HMACMD5.cs
- PropertyTabChangedEvent.cs
- RestClientProxyHandler.cs
- X509CertificateCollection.cs
- processwaithandle.cs
- ServiceObjectContainer.cs
- ToolStripPanel.cs
- CharUnicodeInfo.cs
- SqlCacheDependencyDatabase.cs
- ReferencedAssembly.cs
- SaveFileDialog.cs
- SafeNativeMethods.cs
- ChangeBlockUndoRecord.cs
- TemplateXamlParser.cs
- DecoderExceptionFallback.cs
- JournalEntryListConverter.cs
- PersistChildrenAttribute.cs
- EventDescriptorCollection.cs
- RequestSecurityTokenSerializer.cs
- BitSet.cs
- TaskFormBase.cs
- QueryStoreStatusRequest.cs
- DisplayInformation.cs
- TypeElementCollection.cs
- BindableAttribute.cs
- IndexOutOfRangeException.cs
- PeerEndPoint.cs
- DoubleMinMaxAggregationOperator.cs
- TreeBuilderXamlTranslator.cs
- AutomationElementIdentifiers.cs
- PingReply.cs
- MulticastDelegate.cs
- UnknownExceptionActionHelper.cs
- Fonts.cs
- ReaderOutput.cs
- DataServiceRequestOfT.cs
- ClientTargetCollection.cs
- DataGridBoolColumn.cs
- CorruptingExceptionCommon.cs
- InputScopeNameConverter.cs
- X509Certificate2Collection.cs
- BinaryObjectInfo.cs
- DbSourceParameterCollection.cs
- HttpPostLocalhostServerProtocol.cs
- FixedSOMTableCell.cs
- TaskFormBase.cs
- ModulesEntry.cs
- ObjectListGeneralPage.cs
- PrinterUnitConvert.cs
- __FastResourceComparer.cs
- XsltQilFactory.cs
- LogExtentCollection.cs
- MissingFieldException.cs
- Intellisense.cs
- Accessible.cs
- ReadOnlyCollection.cs
- RepeaterItemEventArgs.cs
- SchemaCollectionCompiler.cs
- Int32Rect.cs
- StaticResourceExtension.cs
- CapabilitiesState.cs
- DrawToolTipEventArgs.cs
- DistinctQueryOperator.cs
- ListBoxItem.cs
- XmlChoiceIdentifierAttribute.cs
- SchemaMerger.cs
- EndpointFilterProvider.cs
- assertwrapper.cs
- ContainsRowNumberChecker.cs
- ScaleTransform3D.cs
- ButtonFieldBase.cs
- SplineQuaternionKeyFrame.cs
- PipeConnection.cs
- DoubleAnimationUsingKeyFrames.cs
- QueryOpeningEnumerator.cs
- InstancePersistenceEvent.cs
- XmlUTF8TextReader.cs
- Mutex.cs
- ProfileServiceManager.cs
- HealthMonitoringSection.cs
- CodeArgumentReferenceExpression.cs
- oledbmetadatacolumnnames.cs
- XhtmlConformanceSection.cs
- Accessible.cs
- GeometryHitTestParameters.cs
- MarkerProperties.cs
- EditorPartCollection.cs
- ObjectDataSource.cs
- ServiceChannel.cs
- FunctionQuery.cs
- PasswordDeriveBytes.cs
- MediaElement.cs