コード例 #1
0
        public override JsValue jsGetProperty(IntPtr jsExecState, JsValue obj, string propertyName)
        {
            switch (propertyName.ToLower())
            {
            case "show":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.show)));

            case "size":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.size)));

            case "close":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.close)));

            case "hide":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.hide)));

            case "position":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.position)));

            case "refresh":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.refresh)));

            case "mode":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.mode)));

            case "exec":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.exec)));

            default:
                return(base.jsGetProperty(jsExecState, obj, propertyName));
            }
        }
コード例 #2
0
        public override JsValue jsGetProperty(IntPtr jsExecState, JsValue obj, string propertyName)
        {
            switch (propertyName.ToLower())
            {
            case "find":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.find_form)));

            case "open":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.open_form)));

            case "socket":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.socket)));

            case "state":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.state)));

            case "store":
                return(JsValue.ObjectValue(jsExecState, new StoreForScript()));

            case "exec":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.exec_script)));

            case "invoke":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.invoke_script)));

            default:
                return(base.jsGetProperty(jsExecState, obj, propertyName));
            }
        }
コード例 #3
0
ファイル: StoreForScript.cs プロジェクト: fdsa-ltd/tangram
        public override JsValue jsGetProperty(IntPtr jsExecState, JsValue obj, string propertyName)
        {
            switch (propertyName)
            {
            case "get":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.get)));

            case "set":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.set)));

            default:
                return(base.jsGetProperty(jsExecState, obj, propertyName));
            }
        }
コード例 #4
0
        public override JsValue jsGetProperty(IntPtr jsExecState, JsValue obj, string propertyName)
        {
            switch (propertyName.ToLower())
            {
            case "open":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.open)));

            case "on":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.on)));

            case "close":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.close)));

            case "send":
                return(JsValue.FunctionValue(jsExecState, new jsCallAsFunction(this.send)));

            default:
                return(base.jsGetProperty(jsExecState, obj, propertyName));
            }
        }