public IJavascriptObject CreateObject(bool iLocal)
        {
            string Name = string.Format("MVVM_HTML_{0}", _Count);

            return(_IWebView.EvaluateSafe(() =>
            {
                Awesomium_Core.JSObject res = (iLocal) ? new Awesomium_Core.JSObject() :
                                              (Awesomium_Core.JSObject)_IWebView.CreateGlobalJavascriptObject(Name);

                res["_MappedId"] = new Awesomium_Core.JSValue(_Count++);

                return res.Convert();
            }));
        }
Beispiel #2
0
        private IJavascriptObject CreateJSObject(bool local)
        {
            string Name = string.Format("MVVM_HTML_{0}", _Count);

            return(_IWebView.EvaluateSafe(() =>
            {
                Awesomium_Core.JSObject res = (local) ? new Awesomium_Core.JSObject() :
                                              (Awesomium_Core.JSObject)_IWebView.CreateGlobalJavascriptObject(Name);

                res[NeutroniumConstants.ObjectId] = new Awesomium_Core.JSValue(_Count++);

                return res.Convert();
            }));
        }