コード例 #1
0
        internal static void RequestExternalFunctions()
        {
            JavascriptFunctionsNeededEventArgs args = new JavascriptFunctionsNeededEventArgs(Instance);

            if (JavascriptFunctionsNeeded != null)
            {
                JavascriptFunctionsNeeded(Instance, args);
            }
        }
コード例 #2
0
 /// <summary>
 /// Tells JIST to submit this class's functions
 /// to the javascript engine.
 /// </summary>
 private void JistPlugin_JavascriptFunctionsNeeded(object sender, JavascriptFunctionsNeededEventArgs e)
 {
     e.Engine.CreateScriptFunctions(this.GetType(), this);
 }
コード例 #3
0
ファイル: BankMain.cs プロジェクト: newyrose/CurrencyBank
        void OnJavascriptFunctionsNeeded(object sender, JavascriptFunctionsNeededEventArgs e)
        {
            JistFunctions functions = new JistFunctions();

            e.Engine.CreateScriptFunctions(functions.GetType(), functions);
        }