public Console(string reportPath, BitMobile.Script.ScriptEngine engine) { _reportPath = reportPath; _engine = engine; CommandPause = 1000; }
public static ScriptEngine LoadScript(System.IO.Stream scriptStream, String name, BitMobile.Debugger.IDebugger debugger) { if (scripts.ContainsKey(name)) return scripts[name]; else { ScriptEngine engine = new ScriptEngine(name, debugger); scripts.Add(name, engine); if (scriptStream != null) engine.Run(new System.IO.StreamReader(scriptStream)); return engine; } }
public ApplicationContext (NavigationController controller, BitMobile.Application.ApplicationSettings settings, CustomExceptionHandler exceptionHandler) { GlobalVariables = new Dictionary<string, object> (); BitMobile.Application.ApplicationContext.InitContext (this); this.Settings = settings; this._controller = controller; this._exceptionHandler = exceptionHandler; LocationProvider = new GPSProvider (); LocationTracker = new GPSTracker (); GalleryProvider = new GalleryProvider (controller, this); CameraProvider = new CameraProvider (controller, this); DialogProvider = new DialogProvider (this); ClipboardProvider = new ClipboardProvider (); }
public ApplicationContext (NavigationController controller, BitMobile.Application.ApplicationSettings settings, CustomExceptionHandler exceptionHandler) { GlobalVariables = new Dictionary<string, object> (); Settings = settings; _controller = controller; _exceptionHandler = exceptionHandler; LocationProvider = new GPSProvider (); LocationTracker = new GPSTracker (); GalleryProvider = new GalleryProvider (controller, this); CameraProvider = new CameraProvider (controller, this); DialogProvider = new DialogProvider (this); DisplayProvider = new DisplayProvider (); var builder = new SolutionBuilder (this); builder.Build (); StyleSheetContext.Current.Scale = UIScreen.MainScreen.Scale; }
public static bool LazyExpression(BitMobile.ValueStack.ValueStack stack, String expression) { expression = expression.Replace("\"", "").Trim(); if (expression.StartsWith("$")) { String[] parts = expression.Split('.'); if(!parts[0].StartsWith("$")) throw new Exception("Invalid expression: " + expression); String root = parts[0].Remove(0, 1); if(stack.Values.ContainsKey(root)) { object obj = stack.Values[root]; if(obj is BitMobile.Controls.IDataBind) return true; } } return false; }
public override void Invoke(BitMobile.Application.IApplicationContext context) { base.Invoke(context); context.Workflow.InvokeAction(context,name,parameters); }
public TemplateView(BitMobile.ValueStack.ValueStack stack, String rootFolder, String name) { this.stack = stack; this.rootFolder = rootFolder; this.name = name; }
public ScreenData(String name, String controllerName, BitMobile.Controls.IScreen screen) { this.Name = name; this.ControllerName = controllerName; this.Screen = screen; }
public XmlTemplateView(BitMobile.ValueStack.ValueStack stack, String rootFolder, String name) :base(stack, rootFolder, name) { }
public void RegisterAction(BitMobile.Actions.Action a) { _currentStep.RegisteredActions.Add(a); }
public ScriptEngine(String moduleName, BitMobile.Debugger.IDebugger debugger) { this.debugger = debugger; this.moduleName = moduleName; this.SetDebugMode(debugger != null); }
public void SetDatabase(BitMobile.DbEngine.IDatabase database) { sqlManager.SetDatabase(database); }
public void Delete(BitMobile.DbEngine.IDbRef obj, bool inTran) { if (obj != null) Database.Current.Delete(obj, inTran); }
public void Delete(BitMobile.DbEngine.IDbRef obj) { if (obj != null) Database.Current.Delete(obj, true); }