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)); }
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); }
public IBusinessProcessFactory CreateBusinessProcessFactory() { return(BusinessProcessFactory.CreateInstance()); }