示例#1
0
        BusinessProcess.BusinessProcess LoadBusinessProcess()
        {
            ValueStack = new ValueStack.ValueStack(_exceptionHandler);
            ValueStack.Push("context", this);
            ValueStack.Push("isTablet", UIDevice.CurrentDevice.Model.Contains("iPad"));

            _configuration = ConfigurationFactory.CreateInstance().CreateConfiguration(ValueStack);

            return(BusinessProcessFactory.CreateInstance().CreateBusinessProcess(_configuration.BusinessProcess.File, ValueStack));
        }
示例#2
0
        void StartApplication()
        {
            _commonData.UserId = DAL.UserId;

            ValueStack = new ValueStack.ValueStack(BitBrowserApp.Current.ExceptionHandler);
            ValueStack.Push("context", this);
            ValueStack.Push("isTablet", IsTablet());

            try
            {
                _configuration = ConfigurationFactory.CreateInstance().CreateConfiguration(ValueStack);
            }
            catch (ResourceNotFoundException e)
            {
                ReturnToStartMenu(e.FriendlyMessage, e.Report);
                return;
            }

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

            LoadingProgress = null;

            _loadComplete();
            _loadComplete = null;

            _settings.SetClearCacheDisabled();

            _businessProcess.Start(this);
        }
示例#3
0
 public IBusinessProcessFactory CreateBusinessProcessFactory()
 {
     return(BusinessProcessFactory.CreateInstance());
 }