コード例 #1
0
        private void OpenStartScreen(bool inSync)
        {
            CommonData.UserId = Dal.UserId;
            _businessProcess  = LoadBusinessProcess();

            bool success = _businessProcess != null;

            if (!success)
            {
                if (!inSync)
                {
                    Dal.RefreshAsync(LoadComplete);
                }
                else
                {
                    throw new Exception("Couldn't load context");
                }
            }
            else
            {
                if (Settings.WaitDebuggerEnabled)
                {
                    BusinessProcessContext.Current.InitConsole();
                    BusinessProcessContext.Current.InitConsole(DbContext.Current.Database);
                }

                _businessProcess.Start(this);
            }

            if (_logonController != null)
            {
                _logonController.Dispose();
                _logonController = null;
            }
            if (_progressController != null)
            {
                _progressController.Dispose();
                _progressController = null;
            }

            AppDelegate.NotificationManager.SendToken();
        }
コード例 #2
0
        void StartApplication()
        {
            _commonData.UserId = Dal.UserId;

            ValueStack = ValueStackContext.Current.CreateValueStack(BitBrowserApp.Current.ExceptionHandler);
            ValueStack.Push("context", this);
            ValueStack.Push("common", _commonData);
            ValueStack.Push("isTablet", IsTablet());

            try
            {
                _configuration = BusinessProcessContext.Current.CreateConfigurationFactory().CreateConfiguration(ValueStack);
            }
            catch (ResourceNotFoundException e)
            {
                ReturnToStartMenu(e.FriendlyMessage, e.Report);
                return;
            }

            try
            {
                _businessProcess = BusinessProcessContext.Current.CreateBusinessProcessFactory()
                                   .CreateBusinessProcess(_configuration.BusinessProcess.File, ValueStack);
            }
            catch (ResourceNotFoundException e)
            {
                ReturnToStartMenu(e.FriendlyMessage, e.Report);
                return;
            }

            InitializePushNotifications();

            LoadingProgress = null;

            _loadComplete();
            _loadComplete = null;

            _settings.SetClearCacheDisabled();

            _businessProcess.Start(this);
        }
コード例 #3
0
        void OpenStartScreen(bool inSync)
        {
            this._commonData.UserId = Dal.UserId;
            this._businessProcess   = LoadBusinessProcess();

            bool success = this._businessProcess != null;

            if (!success)
            {
                if (!inSync)
                {
                    Dal.RefreshAsync(LoadComplete);
                }
                else
                {
                    throw new Exception("Couldn't load context");
                }
            }
            else
            {
                if (Settings.DevelopModeEnabled)
                {
                    BusinessProcessContext.Current.InitConsole(Settings.WaitDebuggerEnabled);
                    BusinessProcessContext.Current.InitConsole(Settings.WaitDebuggerEnabled, DbContext.Current.Database);
                }

                this._businessProcess.Start(this);
            }

            if (_logonController != null)
            {
                _logonController.Dispose();
                _logonController = null;
            }
            if (_progressController != null)
            {
                _progressController.Dispose();
                _progressController = null;
            }
        }
コード例 #4
0
		void OpenStartScreen (bool inSync)
		{
			this._commonData.UserId = Dal.UserId;
			this._businessProcess = LoadBusinessProcess ();

			bool success = this._businessProcess != null;
			if (!success) {
				if (!inSync)
					Dal.RefreshAsync (LoadComplete);
				else
					throw new Exception ("Couldn't load context");
			} else {

				if (Settings.DevelopModeEnabled) {
					BusinessProcessContext.Current.InitConsole (Settings.WaitDebuggerEnabled);
					BusinessProcessContext.Current.InitConsole (Settings.WaitDebuggerEnabled, DbContext.Current.Database);
				}

				this._businessProcess.Start (this);
			}

			if (_logonController != null) {
				_logonController.Dispose ();
				_logonController = null;
			}
			if (_progressController != null) {
				_progressController.Dispose ();
				_progressController = null;
			}
		}
コード例 #5
0
        void StartApplication()
        {
            _commonData.UserId = Dal.UserId;

            ValueStack = ValueStackContext.Current.CreateValueStack(BitBrowserApp.Current.ExceptionHandler);
            ValueStack.Push("context", this);
            ValueStack.Push("common", _commonData);
            ValueStack.Push("isTablet", IsTablet());

            try
            {
                _configuration = BusinessProcessContext.Current.CreateConfigurationFactory().CreateConfiguration(ValueStack);
            }
            catch (ResourceNotFoundException e)
            {
                ReturnToStartMenu(e.FriendlyMessage, e.Report);
                return;
            }

            try
            {
                _businessProcess = BusinessProcessContext.Current.CreateBusinessProcessFactory()
                    .CreateBusinessProcess(_configuration.BusinessProcess.File, ValueStack);
            }
            catch (ResourceNotFoundException e)
            {
                ReturnToStartMenu(e.FriendlyMessage, e.Report);
                return;
            }

            InitializePushNotifications();

            LoadingProgress = null;

            _loadComplete();
            _loadComplete = null;

            _settings.SetClearCacheDisabled();

            _businessProcess.Start(this);
        }
コード例 #6
0
        private void OpenStartScreen(bool inSync)
        {
            CommonData.UserId = Dal.UserId;
            _businessProcess = LoadBusinessProcess();

            bool success = _businessProcess != null;
            if (!success)
            {
                if (!inSync)
                    Dal.RefreshAsync(LoadComplete);
                else
                    throw new Exception("Couldn't load context");
            }
            else
            {
                if (Settings.WaitDebuggerEnabled)
                {
                    BusinessProcessContext.Current.InitConsole();
                    BusinessProcessContext.Current.InitConsole(DbContext.Current.Database);
                }

                _businessProcess.Start(this);
            }

            if (_logonController != null)
            {
                _logonController.Dispose();
                _logonController = null;
            }
            if (_progressController != null)
            {
                _progressController.Dispose();
                _progressController = null;
            }

            AppDelegate.NotificationManager.SendToken();
        }