wxr
2020-01-10 55e72277f0b0b0f4159ef91f72153f8316d89a5b
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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");
        }
    }
}