Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / DataViewSetting.cs / 1305376 / DataViewSetting.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.ComponentModel; [ TypeConverter((typeof(ExpandableObjectConverter))), ] public 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))), ] public 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
- ReferenceSchema.cs
- ModifierKeysValueSerializer.cs
- HeaderPanel.cs
- ByteStorage.cs
- ActionItem.cs
- SocketElement.cs
- XslTransform.cs
- ScriptReferenceEventArgs.cs
- BufferedStream.cs
- ImageList.cs
- SocketAddress.cs
- ValueConversionAttribute.cs
- BidPrivateBase.cs
- LayoutTable.cs
- AddIn.cs
- sitestring.cs
- ConnectionPoolManager.cs
- PriorityBindingExpression.cs
- AttributeCollection.cs
- Divide.cs
- SelectionItemProviderWrapper.cs
- SelectionItemPattern.cs
- SplineKeyFrames.cs
- ObjectQuery_EntitySqlExtensions.cs
- BuildProviderCollection.cs
- ActivityExecutorOperation.cs
- HtmlInputFile.cs
- Canvas.cs
- HashMembershipCondition.cs
- IsolatedStorageFile.cs
- DataTableMappingCollection.cs
- SqlFactory.cs
- ContextBase.cs
- MulticastDelegate.cs
- Substitution.cs
- DocumentViewer.cs
- FontNamesConverter.cs
- TabItem.cs
- UIElementAutomationPeer.cs
- PersistenceIOParticipant.cs
- SendKeys.cs
- XmlObjectSerializerContext.cs
- FontTypeConverter.cs
- DuplicateMessageDetector.cs
- TaiwanCalendar.cs
- LicenseException.cs
- XmlAggregates.cs
- WebHttpBindingCollectionElement.cs
- Boolean.cs
- NativeRecognizer.cs
- FullTrustAssembly.cs
- SecurityTokenValidationException.cs
- TextLineBreak.cs
- XamlDesignerSerializationManager.cs
- ActivityCollectionMarkupSerializer.cs
- MappingItemCollection.cs
- DataGridParentRows.cs
- StatementContext.cs
- ToolStripPanelRow.cs
- MultipartContentParser.cs
- StaticExtensionConverter.cs
- NetworkInformationException.cs
- WindowShowOrOpenTracker.cs
- Msec.cs
- StrongNameIdentityPermission.cs
- XmlBinaryReaderSession.cs
- SecUtil.cs
- RtfToXamlReader.cs
- PathFigureCollectionValueSerializer.cs
- HtmlString.cs
- Keywords.cs
- DataRecord.cs
- Point4D.cs
- SetterBaseCollection.cs
- MultilineStringConverter.cs
- Button.cs
- IriParsingElement.cs
- EDesignUtil.cs
- SourceChangedEventArgs.cs
- FixedSOMTableRow.cs
- Vector3DConverter.cs
- ControlCachePolicy.cs
- SettingsSection.cs
- VisualBrush.cs
- Rect3D.cs
- BamlTreeNode.cs
- FocusManager.cs
- CommandField.cs
- DbConnectionStringCommon.cs
- Base64Stream.cs
- InitializationEventAttribute.cs
- TextEditorSpelling.cs
- IPAddressCollection.cs
- VisualBrush.cs
- EventManager.cs
- IsolatedStorageFileStream.cs
- isolationinterop.cs
- EditorPart.cs
- DataBinder.cs
- DataBoundControlAdapter.cs