demo-xf-app-1a/MobileApp1/App.xaml.cs

48 lines
914 B
C#
Raw Normal View History

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();
MainPage = new NavigationPage(new LoginPage());
}
protected override void OnStart()
{
}
protected override void OnSleep()
{
}
protected override void OnResume()
{
}
public ICorporationService CorporationService
{
get
{
if (corporationService == null) corporationService = new CorporationMockService();
return corporationService;
}
}
}
}