Пример #1
0
 void Logon(bool clearCache, String message = null)
 {
     if (_logonController == null)
     {
         _logonController = new LogonController(clearCache, Settings, Start, message);
     }
     else
     {
         _logonController.UpdateMessage(message);
     }
     _controller.SetViewControllers(new UIViewController[] { _logonController }, false);
 }
Пример #2
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();
        }
Пример #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)
                {
                    ControllerFactory.Debugger = BitMobile.Debugger.Debugger.CreateInstance(Settings.WaitDebuggerEnabled);
                    (ControllerFactory.Debugger as BitMobile.DbEngine.IDatabaseAware).SetDatabase(BitMobile.DbEngine.Database.Current);
                }

                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 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;
			}
		}
Пример #6
0
		void Logon (bool clearCache, String message = null)
		{
			if (_logonController == null)
				_logonController = new LogonController (clearCache, Settings, Start, message);
			else
				_logonController.UpdateMessage (message);
			_controller.SetViewControllers (new UIViewController[] { _logonController }, false);
		}
Пример #7
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) {
					ControllerFactory.Debugger = BitMobile.Debugger.Debugger.CreateInstance (Settings.WaitDebuggerEnabled);
					(ControllerFactory.Debugger as BitMobile.DbEngine.IDatabaseAware).SetDatabase (BitMobile.DbEngine.Database.Current);
				}

				this._businessProcess.Start (this);
			}

			if (_logonController != null) {
				_logonController.Dispose ();
				_logonController = null;
			}
			if (_progressController != null) {
				_progressController.Dispose ();
				_progressController = null;
			}
		}
Пример #8
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();
        }