mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 06:56:10 +00:00
Move
This commit is contained in:
parent
861b8c64d2
commit
b578967f21
1 changed files with 6 additions and 4 deletions
|
|
@ -83,8 +83,9 @@ namespace AideDeJeu.ViewModels
|
|||
var index = BookmarkCollection.IndexOf(item);
|
||||
if (index > 0)
|
||||
{
|
||||
BookmarkCollection.RemoveAt(index);
|
||||
BookmarkCollection.Insert(index - 1, item);
|
||||
BookmarkCollection.Move(index, index - 1);
|
||||
//BookmarkCollection.RemoveAt(index);
|
||||
//BookmarkCollection.Insert(index - 1, item);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -102,8 +103,9 @@ namespace AideDeJeu.ViewModels
|
|||
var index = BookmarkCollection.IndexOf(item);
|
||||
if (index < BookmarkCollection.Count - 1)
|
||||
{
|
||||
BookmarkCollection.RemoveAt(index);
|
||||
BookmarkCollection.Insert(index + 1, item);
|
||||
BookmarkCollection.Move(index, index + 1);
|
||||
//BookmarkCollection.RemoveAt(index);
|
||||
//BookmarkCollection.Insert(index + 1, item);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue