private SetLocaleValue ( CultureInfo culture, bool userSet, bool resetIndexes ) : bool | ||
culture | CultureInfo | |
userSet | bool | |
resetIndexes | bool | |
return | bool |
public void Add(DataTable table) { IntPtr ptr; Bid.ScopeEnter(out ptr, "<ds.DataTableCollection.Add|API> %d#, table=%d\n", this.ObjectID, (table != null) ? table.ObjectID : 0); try { this.OnCollectionChanging(new CollectionChangeEventArgs(CollectionChangeAction.Add, table)); this.BaseAdd(table); this.ArrayAdd(table); if (table.SetLocaleValue(this.dataSet.Locale, false, false) || table.SetCaseSensitiveValue(this.dataSet.CaseSensitive, false, false)) { table.ResetIndexes(); } this.OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, table)); } finally { Bid.ScopeLeave(ref ptr); } }
/// <devdoc> /// <para> /// Adds /// the specified table to the collection. /// </para> /// </devdoc> public void Add(DataTable table) { IntPtr hscp; Bid.ScopeEnter(out hscp, "<ds.DataTableCollection.Add|API> %d#, table=%d\n", ObjectID, (table != null) ? table.ObjectID : 0); try { OnCollectionChanging(new CollectionChangeEventArgs(CollectionChangeAction.Add, table)); BaseAdd(table); ArrayAdd(table); if (table.SetLocaleValue(dataSet.Locale, false, false) || table.SetCaseSensitiveValue(dataSet.CaseSensitive, false, false)) { table.ResetIndexes(); } OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, table)); } finally { Bid.ScopeLeave(ref hscp); } }
/// <summary> /// Adds the specified table to the collection. /// </summary> public void Add(DataTable table) { long logScopeId = DataCommonEventSource.Log.EnterScope("<ds.DataTableCollection.Add|API> {0}, table={1}", ObjectID, (table != null) ? table.ObjectID : 0); try { OnCollectionChanging(new CollectionChangeEventArgs(CollectionChangeAction.Add, table)); BaseAdd(table); ArrayAdd(table); if (table.SetLocaleValue(_dataSet.Locale, false, false) || table.SetCaseSensitiveValue(_dataSet.CaseSensitive, false, false)) { table.ResetIndexes(); } OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, table)); } finally { DataCommonEventSource.Log.ExitScope(logScopeId); } }
/// <summary> /// Adds the specified table to the collection. /// </summary> public void Add(DataTable table) { long logScopeId = DataCommonEventSource.Log.EnterScope("<ds.DataTableCollection.Add|API> {0}, table={1}", ObjectID, (table != null) ? table.ObjectID : 0); try { OnCollectionChanging(new CollectionChangeEventArgs(CollectionChangeAction.Add, table)); BaseAdd(table); ArrayAdd(table); if (table.SetLocaleValue(_dataSet.Locale, false, false) || table.SetCaseSensitiveValue(_dataSet.CaseSensitive, false, false)) { table.ResetIndexes(); } OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, table)); } finally { DataCommonEventSource.Log.ExitScope(logScopeId); } }