1
wxr
2023-03-31 7e42cc13a14b7de31c9f5d5c61cdf24f3246335d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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");
        }
    }
}