mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 15:06:06 +00:00
Début GTK
This commit is contained in:
parent
1cfebe0a85
commit
4a64224417
1 changed files with 16 additions and 13 deletions
|
|
@ -105,19 +105,22 @@
|
||||||
var blockLinks = links.Distinct().OrderBy(l => l.Key).ToList();
|
var blockLinks = links.Distinct().OrderBy(l => l.Key).ToList();
|
||||||
if (blockLinks.Count > 1)
|
if (blockLinks.Count > 1)
|
||||||
{
|
{
|
||||||
//view.GestureRecognizers.Add(new TapGestureRecognizer
|
if (Device.RuntimePlatform == Device.GTK)
|
||||||
//{
|
{
|
||||||
// Command = new Command(async () =>
|
view.GestureRecognizers.Add(new TapGestureRecognizer
|
||||||
// {
|
{
|
||||||
// try
|
Command = new Command(async () =>
|
||||||
// {
|
{
|
||||||
// var result = await Application.Current.MainPage.DisplayActionSheet("Ouvrir le lien", "Annuler", null, blockLinks.Select(x => x.Key).ToArray());
|
try
|
||||||
// var link = blockLinks.FirstOrDefault(x => x.Key == result);
|
{
|
||||||
// NavigateToLinkCommand?.Execute(link.Value);
|
var result = await Application.Current.MainPage.DisplayActionSheet("Ouvrir le lien", "Annuler", null, blockLinks.Select(x => x.Key).ToArray());
|
||||||
// }
|
var link = blockLinks.FirstOrDefault(x => x.Key == result);
|
||||||
// catch (Exception) { }
|
NavigateToLinkCommand?.Execute(link.Value);
|
||||||
// }),
|
}
|
||||||
//});
|
catch (Exception) { }
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue