Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ UpdateIndex() [3/3]

void System.Data.DataView.UpdateIndex ( bool force,
bool fireEvent )
inlinepackageinherited

Definition at line 1387 of file DataView.cs.

1388 {
1389 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataView.UpdateIndex|INFO> {0}, force={1}", ObjectID, force);
1390 try
1391 {
1392 if (!(_open != _shouldOpen || force))
1393 {
1394 return;
1395 }
1397 Index index = null;
1398 if (_open && _table != null)
1399 {
1400 if (SortComparison != null)
1401 {
1403 index.AddRef();
1404 }
1405 else
1406 {
1408 }
1409 }
1410 if (_index != index)
1411 {
1412 if (_index != null)
1413 {
1415 }
1416 _index = index;
1417 if (_index != null)
1418 {
1420 }
1422 if (fireEvent)
1423 {
1425 }
1426 }
1427 }
1428 finally
1429 {
1430 DataCommonEventSource.Log.ExitScope(scopeId);
1431 }
1432 }
Index GetIndex(IndexField[] indexDesc)
void RegisterListChangedEvent(Index index)
virtual void OnListChanged(ListChangedEventArgs e)
Definition DataView.cs:1209
DataViewRowState _recordStates
Definition DataView.cs:68
readonly DataViewListener _dvListener
Definition DataView.cs:106
static ListChangedEventArgs s_resetEventArgs
Definition DataView.cs:88
Comparison< DataRow >? SortComparison
Definition DataView.cs:317
virtual IFilter GetFilter()
Definition DataView.cs:1095

References System.Data.DataView._dvListener, System.Data.DataView._index, System.Data.DataView._open, System.Data.DataView._recordStates, System.Data.DataView._shouldOpen, System.Data.DataView._table, System.Data.DataView.GetFilter(), System.Data.DataTable.GetIndex(), System.index, System.Data.DataCommonEventSource.Log, System.Data.DataView.ObjectID, System.Data.DataView.OnListChanged(), System.Data.DataViewListener.RegisterListChangedEvent(), System.Data.DataView.ResetRowViewCache(), System.Data.DataView.s_resetEventArgs, System.Data.DataView.Sort, System.Data.DataView.SortComparison, and System.Data.DataViewListener.UnregisterListChangedEvent().