/// <summary> /// Starts the dynamic application /// </summary> void DynamicApplication_Startup(object sender, StartupEventArgs e) { Settings.Parse(InitParams = NormalizeInitParams(e.InitParams)); ScriptTags = new DynamicScriptTags(LanguagesConfig); ScriptTags.DownloadHtmlPage(() => { ScriptTags.FetchScriptTags(); XamlScriptTags.Load(); LanguagesConfig.DownloadLanguages(AppManifest, () => { ScriptTags.DownloadExternalCode(() => { Engine = new DynamicEngine(); if (HtmlPage.IsEnabled && Settings.ConsoleEnabled && LanguagesConfig.LanguagesUsed.Count > 0) { Console = Repl.Show(); } LanguageTypeExtensions.Load(Engine.LangConfig); if (HtmlPage.IsEnabled) { ScriptTags.Run(Engine); } Engine.Run(Settings.EntryPoint); }); }); }); }
/// <summary> /// Starts the dynamic application /// </summary> void DynamicApplication_Startup(object sender, StartupEventArgs e) { Settings.Parse(InitParams = NormalizeInitParams(e.InitParams)); ScriptTags = new DynamicScriptTags(LanguagesConfig); ScriptTags.DownloadHtmlPage(() => { ScriptTags.FetchScriptTags(); XamlScriptTags.Load(); LanguagesConfig.DownloadLanguages(AppManifest, () => { ScriptTags.DownloadExternalCode(() => { Engine = new DynamicEngine(); if (HtmlPage.IsEnabled && Settings.ConsoleEnabled && LanguagesConfig.LanguagesUsed.Count > 0) Console = Repl.Show(); LanguageTypeExtensions.Load(Engine.LangConfig); if (HtmlPage.IsEnabled) ScriptTags.Run(Engine); Engine.Run(Settings.EntryPoint); }); }); }); }