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
- TimeSpanMinutesConverter.cs
- ScaleTransform3D.cs
- DelegateSerializationHolder.cs
- pingexception.cs
- MarkupCompilePass1.cs
- OLEDB_Enum.cs
- SID.cs
- TraceHandler.cs
- GeneralTransform3D.cs
- DocumentViewerHelper.cs
- Control.cs
- Pair.cs
- ResourceReferenceExpressionConverter.cs
- WizardStepBase.cs
- DataBindingHandlerAttribute.cs
- ScaleTransform.cs
- PasswordTextNavigator.cs
- TreeBuilder.cs
- LinqDataSourceUpdateEventArgs.cs
- ResolveRequestResponseAsyncResult.cs
- ZipIOCentralDirectoryFileHeader.cs
- DataGridClipboardHelper.cs
- TraceContextRecord.cs
- DataGridHelper.cs
- DeflateEmulationStream.cs
- SqlBulkCopy.cs
- FloaterBaseParagraph.cs
- SafeFileMappingHandle.cs
- Window.cs
- WindowsImpersonationContext.cs
- FixedBufferAttribute.cs
- DrawingGroup.cs
- BinaryParser.cs
- ContractSearchPattern.cs
- AppSettingsExpressionBuilder.cs
- Translator.cs
- SimpleParser.cs
- SqlUserDefinedTypeAttribute.cs
- DBSchemaRow.cs
- BitmapEffectrendercontext.cs
- IntSecurity.cs
- ResourceReader.cs
- Int64Storage.cs
- CodeAssignStatement.cs
- CodeDirectoryCompiler.cs
- ObjectDataSourceDesigner.cs
- StyleTypedPropertyAttribute.cs
- SmiEventStream.cs
- LineVisual.cs
- FlowDocumentReader.cs
- KnownBoxes.cs
- ObjectDataSourceChooseTypePanel.cs
- ConditionCollection.cs
- DataTableExtensions.cs
- InvalidProgramException.cs
- CodeCastExpression.cs
- HealthMonitoringSection.cs
- Intellisense.cs
- CodeObjectCreateExpression.cs
- WMICapabilities.cs
- BamlTreeUpdater.cs
- MultiPageTextView.cs
- QuaternionRotation3D.cs
- DelegateSerializationHolder.cs
- EventTrigger.cs
- MetaTable.cs
- TrackingCondition.cs
- DataGridHeaderBorder.cs
- baseaxisquery.cs
- CompositeCollection.cs
- GenericIdentity.cs
- ObjectViewFactory.cs
- ReferenceEqualityComparer.cs
- PointLight.cs
- ITreeGenerator.cs
- UserControlParser.cs
- ControlParser.cs
- NetworkInformationException.cs
- ContextBase.cs
- BitmapImage.cs
- QuaternionAnimation.cs
- SmiEventSink.cs
- XamlClipboardData.cs
- ViewBase.cs
- MdiWindowListStrip.cs
- BitmapEffectState.cs
- MULTI_QI.cs
- SoapElementAttribute.cs
- DisplayMemberTemplateSelector.cs
- PresentationAppDomainManager.cs
- WSUtilitySpecificationVersion.cs
- SerializationInfoEnumerator.cs
- Button.cs
- FacetValueContainer.cs
- WindowsStatusBar.cs
- TreeNodeBindingCollection.cs
- SoapObjectWriter.cs
- MulticastDelegate.cs
- NullableLongAverageAggregationOperator.cs
- DocumentViewerAutomationPeer.cs