-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml.cs
More file actions
33 lines (26 loc) · 794 Bytes
/
App.xaml.cs
File metadata and controls
33 lines (26 loc) · 794 Bytes
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
using Taskinator.Services;
namespace Taskinator
{
public partial class App : Application
{
private IDialogService _dialogService;
public App()
{
InitializeComponent();
_dialogService = new DialogService();
// Force dark theme
UserAppTheme = AppTheme.Dark;
MainPage = new AppShell();
}
#if (IOS || ANDROID)
protected override async void OnStart()
{
await _dialogService.DisplayAlert("Let's get started!", "Welcome to the Taskinator.", "Ok");
}
protected override async void OnResume()
{
await _dialogService.DisplayAlert("Welcome back!", "App is resuming.", "Ok");
}
#endif
}
}