using Foundation;
|
using Shared;
|
using UIKit;
|
using Shared.SimpleControl;
|
namespace ON.IosrgumentExceptio
|
{
|
public class Application
|
{
|
// This is the main entry point of the application.
|
static void Main (string [] args)
|
{
|
//获取经纬度
|
Shared.Application.LocationAction = (arg1, arg2) => {
|
Shared.Application.LocationAction = null;
|
System.Threading.Tasks.Task.Run (() => {
|
while (true) {
|
#if DEBUG
|
break;
|
#endif
|
System.Console.WriteLine ("Get Location GetAirQuality");
|
try {
|
CommonPage.AirQuality = new service.hdlcontrol.com_WebServiceAirQuality.WebServiceAirQuality ().GetAirQuality (arg2.ToString (), arg1.ToString ());
|
//CommonPage.AirQuality = new service.hdlcontrol.com_WebServiceAirQuality.WebServiceAirQuality ().GetAirQuality ("14.5184506127", "121.0762023926");
|
if (Shared.SimpleControl.CommonPage.AirQuality != null)
|
break;
|
} catch { }
|
}
|
Shared.Application.RunOnMainThread (() => {
|
if (CommonPage.RefreshAir != null)
|
CommonPage.RefreshAir ();
|
});
|
});
|
};
|
|
// if you want to use a different Application Delegate class from "AppDelegate"
|
// you can specify it here.
|
UIApplication.Main (args, null, "AppDelegate");
|
}
|
}
|
}
|