public void ShiftDown(int Position) { if (Position < Count) { tempItem = iItem[Position]; iItem[Position] = iItem[Position + 1]; iItem[Position + 1] = tempItem; } }
public void ShiftUp(int Position) { if (Position > 0) { tempItem = iItem[Position]; iItem[Position] = iItem[Position - 1]; iItem[Position - 1] = tempItem; } }