예제 #1
0
 //a hack to update the views as we can't have ShowDialog() that would cause it to block and allow us to use callbacks
 private void OnCredentialsChanged(object sender, EventArgs eventArgs)
 {
     //TODO: Update the Angular app state. Use signalr?
     m_ChromiumControl.EvaluateJavaScript("window.location.reload()");
 }
 //a hack to update the views as we can't have ShowDialog() that would cause it to block and allow us to use callbacks
 private void OnCredentialsChanged(object sender, EventArgs eventArgs)
 {
     m_ChromiumControl.EvaluateJavaScript("ko.contextFor(window.document.body).$root.updateLoggedInUser()");
 }