Example #1
0
 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;
     }
 }
Example #2
0
 public void Call_SwopEvent(object sender, Tuple <T, T> e)
 {
     SwopEvent?.Invoke(sender, e);
 }