示例#1
0
		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);
			
		}
示例#2
0
		void ShowLoginForm()
		{
			var form = new LoginForm(Document.Body, 
			                         new FormConfig{
				Action="api/Login?format=json",
				Method="post"
			});
			
			form.OnLogin=OnLogin;
			form.Show();
			
		}