public void MoveUp() { if (SelectedStatistic != null && PlayerStatistics.First() != SelectedStatistic) { int index = PlayerStatistics.IndexOf(SelectedStatistic); var stat = SelectedStatistic; PlayerStatistics.Remove(SelectedStatistic); PlayerStatistics.Insert(index - 1, stat); SelectedStatistic = null; SelectedStatistic = stat; } }