예제 #1
0
        public Console(string reportPath, BitMobile.Script.ScriptEngine engine)
        {
            _reportPath = reportPath;
            _engine = engine;

            CommandPause = 1000;
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
		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 ();

		}
예제 #4
0
		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;
		}
예제 #5
0
		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;
		}
예제 #6
0
		public override void Invoke(BitMobile.Application.IApplicationContext context)
		{
			base.Invoke(context);
			context.Workflow.InvokeAction(context,name,parameters);
		}
예제 #7
0
 public TemplateView(BitMobile.ValueStack.ValueStack stack, String rootFolder, String name)
 {
     this.stack = stack;
     this.rootFolder = rootFolder;
     this.name = name;
 }
예제 #8
0
		public ScreenData(String name, String controllerName, BitMobile.Controls.IScreen screen)
		{
			this.Name = name;
            this.ControllerName = controllerName;
			this.Screen = screen;
		}
예제 #9
0
 public XmlTemplateView(BitMobile.ValueStack.ValueStack stack, String rootFolder, String name)
     :base(stack, rootFolder, name)
 {
 }
예제 #10
0
 public void RegisterAction(BitMobile.Actions.Action a)
 {
     _currentStep.RegisteredActions.Add(a);
 }
예제 #11
0
 public ScriptEngine(String moduleName, BitMobile.Debugger.IDebugger debugger)
 {
     this.debugger = debugger;
     this.moduleName = moduleName;
     this.SetDebugMode(debugger != null);
 }
예제 #12
0
 public void SetDatabase(BitMobile.DbEngine.IDatabase database)
 {
     sqlManager.SetDatabase(database);
 }
예제 #13
0
파일: DB.cs 프로젝트: Fedorm/core-master
 public void Delete(BitMobile.DbEngine.IDbRef obj, bool inTran)
 {
     if (obj != null)
         Database.Current.Delete(obj, inTran);
 }
예제 #14
0
파일: DB.cs 프로젝트: Fedorm/core-master
 public void Delete(BitMobile.DbEngine.IDbRef obj)
 {
     if (obj != null)
         Database.Current.Delete(obj, true);
 }