添加项目文件。
This commit is contained in:
43
XXCpzs/App.xaml.cs
Normal file
43
XXCpzs/App.xaml.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using Xamarin.Essentials;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
using XXCpzs.IOInterface;
|
||||
using XXCpzs.Services;
|
||||
using XXCpzs.Views;
|
||||
|
||||
namespace XXCpzs
|
||||
{
|
||||
public partial class App : Application
|
||||
{
|
||||
//TODO: Replace with *.azurewebsites.net url after deploying backend to Azure
|
||||
//To debug on Android emulators run the web backend against .NET Core not IIS
|
||||
//If using other emulators besides stock Google images you may need to adjust the IP address
|
||||
public static string AzureBackendUrl =
|
||||
DeviceInfo.Platform == DevicePlatform.Android ? "http://10.0.2.2:5000" : "http://localhost:5000";
|
||||
public static bool UseMockDataStore = true;
|
||||
|
||||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
if (UseMockDataStore)
|
||||
DependencyService.Register<MockDataStore>();
|
||||
else
|
||||
DependencyService.Register<AzureDataStore>();
|
||||
MainPage = new MainPage();
|
||||
}
|
||||
|
||||
protected override void OnStart()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnSleep()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnResume()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user