private void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { webBrowser.Document.InvokeScript("setExecModeToCS"); webBrowser.Document.InvokeScript("setEnvironmentVar", new object[] { EnvironmentVar.ToJSON() }); string strJsonStr = JsonConvert.SerializeObject( new { Emergency = frmMain.ProcessEmergencyUrl, FamilyCalls = frmMain.ProcessFamilyCallsUrl, //Infotainment = frmMain.ProcessInfotainmentUrl, Life = frmMain.ProcessLifeUrl } ); webBrowser.Document.InvokeScript("setServiceTypeUrl", new object[] { strJsonStr }); webBrowser.Document.InvokeScript("setPageData", new object[] { JsonConvert.SerializeObject(PageData) }); }
private void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { webBrowser.Document.InvokeScript("setExecModeToCS"); webBrowser.Document.InvokeScript("setEnvironmentVar", new object[] { EnvironmentVar.ToJSON() }); webBrowser.Document.InvokeScript("setPageData", new object[] { JsonConvert.SerializeObject(PageData) }); }