protected void Swop(int positionA, int positionB) { if (positionA < Items.Count && positionB < Items.Count) { SwopEvent?.Invoke(this, new Tuple <T, T>(Items[positionA], Items[positionB])); SwopCount++; T temp = Items[positionA]; Items[positionA] = Items[positionB]; Items[positionB] = temp; } }
public void Call_SwopEvent(object sender, Tuple <T, T> e) { SwopEvent?.Invoke(sender, e); }