using Foundation;
|
using Shared;
|
using UIKit;
|
using Shared.SimpleControl;
|
using System;
|
|
|
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 OnWatch
|
#else
|
Shared.BaseApplicationDelegate.FinishedLaunchingAction += (arg1, arg2) => {
|
EZMonitor.CommonList.Init ();
|
com.freeview.global.Video.FVapplication (arg1, arg2 == null ? new NSDictionary { } : arg2);
|
};
|
Shared.BaseApplicationDelegate.DidEnterBackgroundAction += (arg1) => {
|
com.freeview.global.Video.FVapplicationDidEnterBackground (arg1);
|
};
|
Shared.BaseApplicationDelegate.OnResignActivationAction += (arg1) => {
|
com.freeview.global.Video.FVapplicationWillResignActive (arg1);
|
};
|
Shared.BaseApplicationDelegate.OnActivatedAction += (arg1) => {
|
com.freeview.global.Video.FVapplicationDidBecomeActive (arg1);
|
};
|
|
Com.Hdl.ON.CommonList.EZICommon ().MonitorSceneData += (d) => {
|
EZMonitor.CommonList.EditorAction (d);
|
};
|
Com.Hdl.ON.CommonList.EZICommon ().ControlMonitorScene += (d) => {
|
EZMonitor.CommonList.ControlMonitorSceneAction (d);
|
};
|
#endif
|
// if you want to use a different Application Delegate class from "AppDelegate"
|
// you can specify it here.
|
UIApplication.Main (args, null, "AppDelegate");
|
}
|
}
|
}
|