You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
714 B
29 lines
714 B
namespace ShoopNCook;
|
|
using ShoopNCook.Pages;
|
|
using Models;
|
|
using Models.Endpoint;
|
|
using LocalEndpoint;
|
|
|
|
public partial class App : Application, ConnectionObserver
|
|
{
|
|
|
|
private IEndpoint Endpoint = new LocalEndpoint();
|
|
private UserNotifier Notifier = new ConsoleUserNotifier();
|
|
|
|
public App()
|
|
{
|
|
InitializeComponent();
|
|
|
|
|
|
Shell shell = new ConnectAppShell(this, Endpoint.AccountManager, Notifier);
|
|
shell.GoToAsync("//Splash");
|
|
MainPage = shell;
|
|
}
|
|
|
|
public void OnAccountConnected(Account account)
|
|
{
|
|
Shell shell = new MainAppShell(account, Notifier);
|
|
shell.GoToAsync("//MainPage");
|
|
MainPage = shell;
|
|
}
|
|
} |