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
- Camera.cs
- DecodeHelper.cs
- Activator.cs
- Types.cs
- IndexedString.cs
- NestPullup.cs
- RowTypeElement.cs
- CqlErrorHelper.cs
- DbConnectionPoolOptions.cs
- AesManaged.cs
- EncoderNLS.cs
- FormsAuthentication.cs
- ValidatorAttribute.cs
- WindowsListViewItemStartMenu.cs
- InfoCardSymmetricAlgorithm.cs
- ToolboxBitmapAttribute.cs
- ThicknessConverter.cs
- GC.cs
- ListItemConverter.cs
- LocalizationParserHooks.cs
- ServiceHostingEnvironment.cs
- PreviewKeyDownEventArgs.cs
- OciHandle.cs
- Durable.cs
- SchemaExporter.cs
- HttpListenerTimeoutManager.cs
- KoreanCalendar.cs
- WindowsRichEditRange.cs
- ClientTargetSection.cs
- Typeface.cs
- DbCommandTree.cs
- sqlpipe.cs
- DrawingGroup.cs
- _NestedMultipleAsyncResult.cs
- LayoutEvent.cs
- SwitchElementsCollection.cs
- Operand.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ConstraintEnumerator.cs
- MessageEncoder.cs
- TextEditorSpelling.cs
- MailHeaderInfo.cs
- ZipPackage.cs
- BuildProviderAppliesToAttribute.cs
- AddInProcess.cs
- AutomationElement.cs
- TextBreakpoint.cs
- ParseElement.cs
- LinkedResource.cs
- SqlDataSourceView.cs
- ApplicationFileCodeDomTreeGenerator.cs
- OdbcParameter.cs
- HashSet.cs
- ClientFormsIdentity.cs
- ThrowHelper.cs
- SafeCloseHandleCritical.cs
- FunctionParameter.cs
- mongolianshape.cs
- ListViewHitTestInfo.cs
- CharStorage.cs
- CustomTypeDescriptor.cs
- ProfileService.cs
- AuthorizationRule.cs
- DbProviderConfigurationHandler.cs
- ChannelSinkStacks.cs
- GlyphsSerializer.cs
- DSASignatureFormatter.cs
- StreamReader.cs
- ObjectPersistData.cs
- SharedUtils.cs
- HebrewCalendar.cs
- ClientType.cs
- ProjectionAnalyzer.cs
- ImageListDesigner.cs
- ProgressBarRenderer.cs
- CompiledXpathExpr.cs
- FunctionDefinition.cs
- WsdlInspector.cs
- ConfigurationManagerHelper.cs
- Collection.cs
- ObjectMemberMapping.cs
- MarkedHighlightComponent.cs
- _ScatterGatherBuffers.cs
- ConfigurationSectionHelper.cs
- SortAction.cs
- ContentControl.cs
- ProcessHost.cs
- VBIdentifierTrimConverter.cs
- GorillaCodec.cs
- XamlPathDataSerializer.cs
- BooleanExpr.cs
- XmlDocumentFieldSchema.cs
- ProcessHostMapPath.cs
- dataprotectionpermission.cs
- XmlRawWriter.cs
- HitTestWithPointDrawingContextWalker.cs
- DataGridViewColumn.cs
- NumberFormatInfo.cs
- WeakReferenceEnumerator.cs
- OleDbInfoMessageEvent.cs