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
- InvalidComObjectException.cs
- Propagator.JoinPropagator.cs
- CustomError.cs
- ImmutableObjectAttribute.cs
- QuaternionAnimationBase.cs
- Brushes.cs
- WebRequest.cs
- RTLAwareMessageBox.cs
- AbandonedMutexException.cs
- _SSPIWrapper.cs
- CopyAction.cs
- MetadataSerializer.cs
- EmbeddedObject.cs
- ProcessModuleDesigner.cs
- ValueTypeFixupInfo.cs
- SafeViewOfFileHandle.cs
- RightsManagementEncryptionTransform.cs
- ToolBarPanel.cs
- PrintDialogException.cs
- WebBrowser.cs
- MemberAssignmentAnalysis.cs
- ProcessHost.cs
- CodeGenerator.cs
- MD5.cs
- _ScatterGatherBuffers.cs
- DateTime.cs
- RefreshEventArgs.cs
- CodeComment.cs
- ProtocolsConfigurationEntry.cs
- isolationinterop.cs
- PtsContext.cs
- PasswordBox.cs
- SessionStateContainer.cs
- RC2CryptoServiceProvider.cs
- CodeEntryPointMethod.cs
- SuppressMessageAttribute.cs
- XPathNode.cs
- _DisconnectOverlappedAsyncResult.cs
- SymbolDocumentGenerator.cs
- ScrollData.cs
- Axis.cs
- ToolStripOverflow.cs
- XmlNamespaceMappingCollection.cs
- EncodingFallbackAwareXmlTextWriter.cs
- Soap.cs
- WmlCommandAdapter.cs
- PropertyTabAttribute.cs
- UserControlBuildProvider.cs
- ConfigurationSection.cs
- DateRangeEvent.cs
- WorkflowNamespace.cs
- CalendarBlackoutDatesCollection.cs
- NullableBoolConverter.cs
- NonDualMessageSecurityOverHttp.cs
- CapiSymmetricAlgorithm.cs
- CreationContext.cs
- ShadowGlyph.cs
- CircleEase.cs
- OdbcError.cs
- RotateTransform3D.cs
- DataBindingExpressionBuilder.cs
- TimelineClockCollection.cs
- Triangle.cs
- NetSectionGroup.cs
- Figure.cs
- ByteStream.cs
- MarkupCompilePass2.cs
- WebControlAdapter.cs
- WebServiceClientProxyGenerator.cs
- BasicKeyConstraint.cs
- StandardCommands.cs
- FastPropertyAccessor.cs
- AlternateViewCollection.cs
- PriorityQueue.cs
- BookmarkNameHelper.cs
- ValidationPropertyAttribute.cs
- FeatureSupport.cs
- RowToFieldTransformer.cs
- BindableTemplateBuilder.cs
- TransformBlockRequest.cs
- GroupBox.cs
- StrongNameMembershipCondition.cs
- TableRow.cs
- AssemblyUtil.cs
- WebPartUserCapability.cs
- InnerItemCollectionView.cs
- util.cs
- _ShellExpression.cs
- FrugalList.cs
- FormatConvertedBitmap.cs
- EditorAttribute.cs
- RelationshipEndMember.cs
- DocumentGridContextMenu.cs
- DataObjectPastingEventArgs.cs
- ColumnResizeUndoUnit.cs
- versioninfo.cs
- HierarchicalDataBoundControlAdapter.cs
- Trigger.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- SSmlParser.cs