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; } }