2021-07-13 13:57:44 +00:00
|
|
|
|
using MobileApp1.Services;
|
|
|
|
|
using MobileApp1.Views;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
|
|
|
|
|
namespace MobileApp1
|
|
|
|
|
{
|
|
|
|
|
public partial class App : Application
|
|
|
|
|
{
|
|
|
|
|
private ICorporationService corporationService = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public App()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
//DependencyService.Register<MockDataStore>();
|
|
|
|
|
|
|
|
|
|
//MainPage = new AppShell();
|
|
|
|
|
|
2021-08-04 23:50:48 +00:00
|
|
|
|
MainPage = new NavigationPage(new LoginPage());
|
|
|
|
|
//MainPage = new MainPage();
|
2021-07-13 13:57:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnStart()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnSleep()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnResume()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ICorporationService CorporationService
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (corporationService == null) corporationService = new CorporationMockService();
|
|
|
|
|
|
|
|
|
|
return corporationService;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|