コード例 #1
0
        public FREObject InjectScript(FREContext ctx, uint argc, FREObject[] argv)
        {
            var injectCodeFre      = new FreObjectSharp(argv[0]);
            var injectScriptUrlFre = new FreObjectSharp(argv[1]);
            var injectStartLineFre = new FreObjectSharp(argv[2]);

            if (FreObjectTypeSharp.String == injectCodeFre.GetType())
            {
                _view.InjectCode = injectCodeFre.GetAsString();
            }
            if (FreObjectTypeSharp.String == injectScriptUrlFre.GetType())
            {
                _view.InjectScriptUrl = injectScriptUrlFre.GetAsString();
            }
            _view.InjectStartLine = injectStartLineFre.GetAsInt();

            return(FREObject.Zero);
        }