Ram Watch - implement Move Up function

This commit is contained in:
andres.delikat 2011-01-21 04:44:30 +00:00
parent 79c6ed4195
commit 3a98f07e53
1 changed files with 12 additions and 0 deletions

View File

@ -217,6 +217,18 @@ namespace BizHawk.MultiClient
void MoveUp()
{
ListView.SelectedIndexCollection indexes = WatchListView.SelectedIndices;
//int x = indexes[0];
Watch temp = new Watch();
foreach (int index in indexes)
{
temp = watchList[index];
watchList.Remove(watchList[index]);
watchList.Insert(index - 1, temp);
}
DisplayWatchList();
//TODO: Set highlighted items to be what the user had selected (in their new position)
}
void MoveDown()