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.
ShopNCook/App.xaml.cs

28 lines
630 B

namespace ShoopNCook;
using ShoopNCook.Pages;
using Models;
using Models.Endpoint;
using LocalEndpoint;
public partial class App : Application, ConnectionObserver
{
private IEndpoint endpoint = new LocalEndpoint();
public App()
{
InitializeComponent();
Shell shell = new ConnectAppShell(this, endpoint.AccountManager);
shell.GoToAsync("//Splash");
MainPage = shell;
}
public void OnAccountConnected(Account account)
{
Shell shell = new MainAppShell(account);
shell.GoToAsync("//MainPage");
MainPage = shell;
}
}