mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 15:06:06 +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);
|
var index = BookmarkCollection.IndexOf(item);
|
||||||
if (index > 0)
|
if (index > 0)
|
||||||
{
|
{
|
||||||
BookmarkCollection.RemoveAt(index);
|
BookmarkCollection.Move(index, index - 1);
|
||||||
BookmarkCollection.Insert(index - 1, item);
|
//BookmarkCollection.RemoveAt(index);
|
||||||
|
//BookmarkCollection.Insert(index - 1, item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -102,8 +103,9 @@ namespace AideDeJeu.ViewModels
|
||||||
var index = BookmarkCollection.IndexOf(item);
|
var index = BookmarkCollection.IndexOf(item);
|
||||||
if (index < BookmarkCollection.Count - 1)
|
if (index < BookmarkCollection.Count - 1)
|
||||||
{
|
{
|
||||||
BookmarkCollection.RemoveAt(index);
|
BookmarkCollection.Move(index, index + 1);
|
||||||
BookmarkCollection.Insert(index + 1, item);
|
//BookmarkCollection.RemoveAt(index);
|
||||||
|
//BookmarkCollection.Insert(index + 1, item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue