///<summary>Syncs _listOps and _listOpsOld after correcting the order of _listOps.</summary> private void ReorderAndSync() { //Renumber the itemorders to match the grid. In most cases this will not do anything, but will fix any duplicate itemorders. for (int i = 0; i < _listOps.Count; i++) { _listOps[i].ItemOrder = i; } Operatories.Sync(_listOps, _listOpsOld); }