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
- StylusPointCollection.cs
- HttpClientCredentialType.cs
- Panel.cs
- UnSafeCharBuffer.cs
- CodeTypeReference.cs
- LogRecordSequence.cs
- FontNamesConverter.cs
- _UriTypeConverter.cs
- PanelStyle.cs
- IPCCacheManager.cs
- LineInfo.cs
- XmlSchemaRedefine.cs
- ServiceObjectContainer.cs
- DataGridItem.cs
- SqlStream.cs
- EntityContainerEntitySet.cs
- XmlIncludeAttribute.cs
- ThreadStaticAttribute.cs
- InvalidCastException.cs
- _OSSOCK.cs
- DispatcherExceptionFilterEventArgs.cs
- Error.cs
- FontFaceLayoutInfo.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WorkflowDebuggerSteppingAttribute.cs
- PartialList.cs
- ConnectionManager.cs
- Evidence.cs
- DefaultTextStoreTextComposition.cs
- HtmlToClrEventProxy.cs
- DeclaredTypeElementCollection.cs
- RowToFieldTransformer.cs
- FunctionGenerator.cs
- TcpPortSharing.cs
- XMLSyntaxException.cs
- PersonalizationStateQuery.cs
- StrokeSerializer.cs
- WebPartsSection.cs
- DLinqAssociationProvider.cs
- MemberMemberBinding.cs
- VisualBasicSettingsHandler.cs
- UpDownBase.cs
- SafeHandle.cs
- DynamicMetaObjectBinder.cs
- ToggleButtonAutomationPeer.cs
- MachineKeyConverter.cs
- Helpers.cs
- OracleParameter.cs
- FileDialogPermission.cs
- DataTemplateSelector.cs
- TextTreeObjectNode.cs
- IDReferencePropertyAttribute.cs
- PersonalizationProvider.cs
- Rect.cs
- FindSimilarActivitiesVerb.cs
- WizardPanel.cs
- ExpressionEditorAttribute.cs
- ContainerParagraph.cs
- DbMetaDataCollectionNames.cs
- SafeArrayRankMismatchException.cs
- BaseCodeDomTreeGenerator.cs
- RegexReplacement.cs
- ApplicationFileCodeDomTreeGenerator.cs
- MachineSettingsSection.cs
- ObjectReaderCompiler.cs
- XmlArrayItemAttribute.cs
- DeflateStream.cs
- LogExtent.cs
- ToolStripMenuItem.cs
- AvTraceDetails.cs
- PriorityRange.cs
- CompilerErrorCollection.cs
- SimpleHandlerFactory.cs
- WebBrowserProgressChangedEventHandler.cs
- ProtectedConfigurationProviderCollection.cs
- PathSegmentCollection.cs
- ClassDataContract.cs
- DrawingContextDrawingContextWalker.cs
- ToolStripSeparator.cs
- SwitchLevelAttribute.cs
- ObjectItemCollection.cs
- AuthenticationServiceManager.cs
- SubtreeProcessor.cs
- RtfFormatStack.cs
- StorageComplexTypeMapping.cs
- DataAdapter.cs
- RtfToXamlReader.cs
- Hash.cs
- BufferAllocator.cs
- ChineseLunisolarCalendar.cs
- Config.cs
- QilVisitor.cs
- SynchronizedPool.cs
- MimeTypeMapper.cs
- OleDbParameterCollection.cs
- ProfileSection.cs
- Stylesheet.cs
- WorkflowInvoker.cs
- StringResourceManager.cs
- Buffer.cs