Beispiel #1
0
        private void SwapPortraitImages(int index1, int index2)
        {
            object selectedItem = lbPortraits.SelectedItem;

            object temp = lbPortraits.Items[index1];

            lbPortraits.Items[index1] = lbPortraits.Items[index2];
            lbPortraits.Items[index2] = temp;

            lbPortraits.SelectedItem = selectedItem;

            Kart.SwapPortraits(index1, index2);
        }