示例#1
0
        public MainPage()
        {
            this.InitializeComponent();

            // Initialize Service Bus connection and set required event handlers
            IEventTransport ServiceBusEventTransport = new ServiceBusEventTransportUwp();
            IAppController  TelemetryController      = new AppManagerUwp();

            SmartHive.LevelMapApp.App mainApp = new SmartHive.LevelMapApp.App(ServiceBusEventTransport, TelemetryController);

            this.settingsController = mainApp.settingsController;

            LoadApplication(mainApp);
        }
示例#2
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);

            this.telemetryController = new AppManagerDroid();

            CrashManager.Register(this, "b707dfb571d74c0b9d55a9a7a1c6b5c5");
            SmartHive.LevelMapApp.App app = new SmartHive.LevelMapApp.App(null, this.telemetryController);
            this.settingsController = app.settingsController;

            LoadApplication(app);
        }