1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 06:56:10 +00:00

Correction liens vo

This commit is contained in:
Yan Maniez 2018-06-24 00:35:12 +02:00
parent 638288279b
commit 5523d13988

View file

@ -174,6 +174,15 @@ namespace AideDeJeu.ViewModels
await Navigator.GotoSpellDetailPageAsync(spell);
}
}
else if (file == "spells_vo")
{
var spells = await GetItemsViewModel(ItemSourceType.SpellVO).GetAllItemsAsync();
var spell = spells.Where(i => i.Id == anchor).FirstOrDefault();
if (spell != null)
{
await Navigator.GotoSpellDetailPageAsync(spell);
}
}
else if (file == "monsters_hd")
{
var monsters = await GetItemsViewModel(ItemSourceType.MonsterHD).GetAllItemsAsync();
@ -183,9 +192,18 @@ namespace AideDeJeu.ViewModels
await Navigator.GotoMonsterDetailPageAsync(monster);
}
}
else if (file == "monsters_vo")
{
var monsters = await GetItemsViewModel(ItemSourceType.MonsterVO).GetAllItemsAsync();
var monster = monsters.Where(i => i.Id == anchor).FirstOrDefault();
if (monster != null)
{
await Navigator.GotoMonsterDetailPageAsync(monster);
}
}
else
{
Device.OpenUri(new Uri(s));
//Device.OpenUri(new Uri(s));
}
}
}