-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppShell.xaml.cs
44 lines (39 loc) · 1.3 KB
/
AppShell.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
namespace DiscordWebhookRemoteApp
{
public partial class AppShell : Shell
{
public AppShell()
{
InitializeComponent();
}
private async void Support_Clicked(object sender, EventArgs e)
{
string supportLink = "https://apps.shiroko.dev/supportus/";
_ = Browser.OpenAsync(supportLink, BrowserLaunchMode.External);
}
private async void Discord_Clicked(object sender, EventArgs e)
{
#region Discord Invite Section
string discorInviteShorten = "https://bit.ly/3NmBFDO";
string discorInvite = "https://discord.gg/aX4unxzZek";
_ = Browser.OpenAsync(discorInvite, BrowserLaunchMode.SystemPreferred);
return;
var res = await App.Current.MainPage.DisplayActionSheet(
"Discord Invite",
string.Empty,
"Cancel",
"Open Link",
"Copy Link"
);
if (res is "Open Link")
{
_ = Browser.OpenAsync(discorInviteShorten, BrowserLaunchMode.SystemPreferred);
}
else if (res is "Copy Link")
{
await Clipboard.SetTextAsync(discorInvite);
}
#endregion
}
}
}