Esempio n. 1
0
        /// <summary>
        /// Refresh the KekuleJs renderer to redraw the content
        /// </summary>
        /// <param name="KekuleJs"></param>
        /// <param name="size"></param>

        public void ResizeRendering()
        {
            string script = "";

            script += "chemCtl.setDimension('" + Browser.Width + "px','" + Browser.Height + "px');";
            JavaScriptManager.ExecuteScript(this, script);
            return;
        }
Esempio n. 2
0
        /// <summary>
        /// ExecuteJavaScript
        /// </summary>
        /// <param name="script"></param>

        void ExecuteJavaScript(string script)
        {
            LoadInitialPage();             // be sure initial page is loaded
            JavaScriptManager.ExecuteScript(this, script);
            return;
        }