コード例 #1
0
 private void Login_Click(object sender, RoutedEventArgs e)
 {
     if ((!String.IsNullOrEmpty(UserNameValue.Text)) && (!String.IsNullOrEmpty(PasswordValue.Password)))
     {
         FBA fba = new FBA();
         fba.OnAuthenticated        += new EventHandler <FBAAuthenticatedEventArgs>(fba_OnAuthenticated);
         fba.OnFailedAuthentication += new EventHandler(fba_OnFailedAuthentication);
         fba.Authenticate(UserNameValue.Text, PasswordValue.Password, Constants.AUTHENTICATION_SERVICE_URL);
     }
     else
     {
         MessageBox.Show("Please enter user name and password.");
     }
 }
コード例 #2
0
 public ActionResult RemarkView(string sku)
 {
     return(View(FBA.Single(sku)));
 }
コード例 #3
0
 public ActionResult UpdateView(string sku)
 {
     return(View(FBA.Single(sku)));
 }