//TODO: FIX TRANSFER WITH 3 ITEMS IN LIST -> DRAG TOP TO VERY BOTTOM AND IT TRIES INDEX 3. IF YOU TRY IN BETWEEN IT PUTS IT LAST IN LIST public void ExecuteListTransfer(SettingSortVM sorter, int index, string targetTag) { if (targetTag == "SettingList") { if (sorter.Side != SettingSide.RIGHT) { ExecuteTransfer(sorter, index, SettingSide.RIGHT); } else { _settingList.Remove(sorter); if (index > _settingList.Count) { _settingList.Insert(index - 1, sorter); } else { _settingList.Insert(index, sorter); } } } else if (targetTag == "PossibleSettingList") { if (sorter.Side != SettingSide.LEFT) { ExecuteTransfer(sorter, index, SettingSide.LEFT); } else { _possibleSettingList.Remove(sorter); if (index > _possibleSettingList.Count) { _possibleSettingList.Insert(index - 1, sorter); } else { _possibleSettingList.Insert(index, sorter); } } } }
public void ExecuteListTransfer(SettingSortingOrderVM sorter, int index, string targetTag) { _sortingOrder.Remove(sorter); if (index > _sortingOrder.Count) { _sortingOrder.Insert(index - 1, sorter); } else { _sortingOrder.Insert(index, sorter); } }