void OnLogin(LoginResponse loginResponse, LoginForm lf) { Cayita.Javascript.Firebug.Console.Log("App.OnLogin ", loginResponse); var a = TopNavBar.PullRightAnchor.JSelect().Text(lf.UserName); TopNavBar.PullRightParagraph.JSelect().Text(""); TopNavBar.PullRightParagraph.JSelect().Append(a); lf.Close(); ShowUserMenu(loginResponse); }
void ShowLoginForm() { var form = new LoginForm(Document.Body, new FormConfig{ Action="api/Login?format=json", Method="post" }); form.OnLogin=OnLogin; form.Show(); }