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
- _AutoWebProxyScriptWrapper.cs
- RowToFieldTransformer.cs
- SevenBitStream.cs
- XmlILConstructAnalyzer.cs
- ToolStripSeparatorRenderEventArgs.cs
- BitSet.cs
- Debug.cs
- OleDbRowUpdatingEvent.cs
- PrintDialog.cs
- FontDialog.cs
- ConfigurationPropertyAttribute.cs
- ServiceParser.cs
- WindowsStartMenu.cs
- CollectionViewGroupInternal.cs
- FormClosingEvent.cs
- ContextMarshalException.cs
- PageBuildProvider.cs
- TemplateControlParser.cs
- Persist.cs
- SwitchLevelAttribute.cs
- ImageEditor.cs
- FormViewPagerRow.cs
- LookupNode.cs
- TextSegment.cs
- DataViewListener.cs
- PermissionListSet.cs
- XmlMtomWriter.cs
- MulticastNotSupportedException.cs
- XamlToRtfWriter.cs
- GlyphRun.cs
- FileDialog_Vista_Interop.cs
- WindowsToolbar.cs
- HttpResponseHeader.cs
- TextSchema.cs
- FixedSOMSemanticBox.cs
- _UncName.cs
- OSFeature.cs
- CryptoHelper.cs
- ExternalException.cs
- PerformanceCounterPermissionAttribute.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CngKey.cs
- EntityDataSourceContextDisposingEventArgs.cs
- DataGridViewMethods.cs
- HandleCollector.cs
- AspProxy.cs
- ToolStripContentPanel.cs
- MonikerProxyAttribute.cs
- HttpListenerRequest.cs
- SystemIPAddressInformation.cs
- OutputScopeManager.cs
- EventProperty.cs
- FormattedText.cs
- ConfigXmlComment.cs
- ParentQuery.cs
- DispatcherOperation.cs
- FixedStringLookup.cs
- KeyPressEvent.cs
- SqlDependency.cs
- KeyValuePair.cs
- DashStyle.cs
- CodeDirectiveCollection.cs
- DrawingBrush.cs
- MenuAutomationPeer.cs
- ExpressionVisitor.cs
- SoapHeaders.cs
- ConvertBinder.cs
- DesignerForm.cs
- DataGridBoolColumn.cs
- ConnectionManagementElement.cs
- AutoGeneratedField.cs
- XmlSerializationGeneratedCode.cs
- SerialErrors.cs
- Point4DConverter.cs
- SecurityUtils.cs
- CacheManager.cs
- DateTimeParse.cs
- GridPatternIdentifiers.cs
- ViewBase.cs
- DoubleUtil.cs
- XmlAttributeAttribute.cs
- MethodResolver.cs
- Compress.cs
- NamespaceList.cs
- InputQueue.cs
- XmlLanguageConverter.cs
- StopStoryboard.cs
- Int16Animation.cs
- EnvelopedPkcs7.cs
- X509Utils.cs
- PropertyExpression.cs
- CreateParams.cs
- Base64Encoding.cs
- SetterBaseCollection.cs
- NeutralResourcesLanguageAttribute.cs
- OperationInvokerTrace.cs
- XmlSchemaAttributeGroupRef.cs
- HistoryEventArgs.cs
- GPPOINTF.cs
- ObjectRef.cs