Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- StrokeCollectionDefaultValueFactory.cs
- EnumBuilder.cs
- ObjectPropertyMapping.cs
- DesignTimeVisibleAttribute.cs
- InvalidPropValue.cs
- TagNameToTypeMapper.cs
- GridErrorDlg.cs
- DataGridViewTopLeftHeaderCell.cs
- IssuanceLicense.cs
- Crc32Helper.cs
- PermissionSet.cs
- RequiredFieldValidator.cs
- DeclaredTypeValidator.cs
- XPathArrayIterator.cs
- TextFormatterContext.cs
- SqlDataSourceConnectionPanel.cs
- FocusManager.cs
- GeometryHitTestResult.cs
- ChannelSinkStacks.cs
- SchemaSetCompiler.cs
- SelectionItemProviderWrapper.cs
- ImmutableCollection.cs
- NotifyCollectionChangedEventArgs.cs
- SqlClientWrapperSmiStream.cs
- EncoderBestFitFallback.cs
- NameValueConfigurationCollection.cs
- GlyphTypeface.cs
- CoreSwitches.cs
- CancellationTokenRegistration.cs
- XmlnsCompatibleWithAttribute.cs
- AssemblyFilter.cs
- TextEditorLists.cs
- DescriptionCreator.cs
- SelectionGlyph.cs
- ControlPaint.cs
- DbExpressionVisitor.cs
- WhitespaceRuleLookup.cs
- ToolStripTextBox.cs
- AngleUtil.cs
- SamlSerializer.cs
- StopStoryboard.cs
- InvokeWebService.cs
- ObjectDataSourceSelectingEventArgs.cs
- DaylightTime.cs
- FormatterConverter.cs
- SmiMetaData.cs
- DelimitedListTraceListener.cs
- DataContractSerializer.cs
- AddressUtility.cs
- ObjectNotFoundException.cs
- FacetValueContainer.cs
- SafeRightsManagementQueryHandle.cs
- TypeResolvingOptions.cs
- NameSpaceEvent.cs
- ExtendedPropertiesHandler.cs
- CreateRefExpr.cs
- URI.cs
- ValidationResult.cs
- dbdatarecord.cs
- DocumentReference.cs
- AppSettingsExpressionBuilder.cs
- ClientScriptItem.cs
- KeyFrames.cs
- SerializationFieldInfo.cs
- MouseDevice.cs
- EncryptedData.cs
- SystemUnicastIPAddressInformation.cs
- DrawingCollection.cs
- DbgCompiler.cs
- DirectoryInfo.cs
- ScrollProperties.cs
- followingsibling.cs
- InkPresenter.cs
- RectangleHotSpot.cs
- ReadOnlyMetadataCollection.cs
- XmlSignificantWhitespace.cs
- AuthenticationModuleElementCollection.cs
- DBSqlParser.cs
- NavigationFailedEventArgs.cs
- HttpPostedFile.cs
- DataRecordInfo.cs
- ConfigXmlCDataSection.cs
- ToRequest.cs
- XsdBuildProvider.cs
- ThreadNeutralSemaphore.cs
- DefaultTextStoreTextComposition.cs
- ValidatedControlConverter.cs
- WaitHandleCannotBeOpenedException.cs
- MetadataItemSerializer.cs
- PerformanceCounterPermissionEntryCollection.cs
- DrawingContextFlattener.cs
- AsymmetricSignatureFormatter.cs
- WS2007HttpBindingElement.cs
- EventLogPermissionAttribute.cs
- DesignerActionUIService.cs
- CommentEmitter.cs
- BamlRecordWriter.cs
- AssemblyFilter.cs
- ScriptHandlerFactory.cs
- SelectedCellsChangedEventArgs.cs