Esempio n. 1
0
        protected override void OnResume()
        {
            base.OnResume();
            _isInFront = true;
            if (_onResumeCallback != null)
            {
                _onResumeCallback();
            }
            _onResumeCallback = null;

            if (_sensorManger != null)
            {
                _sensorManger.RegisterListener(this, _sensorManger.GetDefaultSensor(SensorType.Accelerometer), SensorDelay.Ui);
            }

            BitBrowserApp app = BitBrowserApp.Current;

            if (app.AppContext != null && app.AppContext.ValueStack != null && app.AppContext.Workflow != null)
            {
                string workflow         = BitBrowserApp.Current.AppContext.Workflow.Name;
                var    eventsController = ControllerFactory.GlobalEvents;
                if (eventsController != null)
                {
                    eventsController.OnApplicationRestore(workflow);
                }
            }
        }
Esempio n. 2
0
        protected override void OnResume()
        {
            base.OnResume();
            _isInFront = true;
            if (_onResumeCallback != null)
            {
                _onResumeCallback();
            }
            _onResumeCallback = null;

            if (_sensorManger != null)
            {
                _sensorManger.RegisterListener(this, _sensorManger.GetDefaultSensor(SensorType.Accelerometer), SensorDelay.Ui);
            }

            BitBrowserApp app = BitBrowserApp.Current;

            if (app.AppContext != null && app.AppContext.ValueStack != null && app.AppContext.Workflow != null)
            {
                BitBrowserApp.Current.AppContext.OnApplicationForeground();

                //todo: move to application context
                if (!_waitingActivityResult)
                {
                    string workflow         = BitBrowserApp.Current.AppContext.Workflow.Name;
                    var    eventsController = BusinessProcessContext.Current.GlobalEventsController;
                    if (eventsController != null)
                    {
                        eventsController.OnApplicationRestore(workflow);
                    }
                }
            }

            if (LogManager.Reporter != null)
            {
                LogManager.Logger.ApplicationMaximized();
            }

            _waitingActivityResult = false; // OnResume execute after OnActivityResult
        }
Esempio n. 3
0
 static BitBrowserApp()
 {
     Current = new BitBrowserApp();
 }
Esempio n. 4
0
 static BitBrowserApp()
 {
     Current = new BitBrowserApp();
 }