コード例 #1
0
 //This sends the username and password to amazon using the helper functions (which then create local cookies etc)
 public void DoLogin(string username, string password)
 {
     LoginProcessStatus = "Processing";
     if (username == "" | password == "")
     {
         LoginProcessStatus = "Required";
         return;
     }
     if (AmazonVideoRequest.login(username, password))
     {
         GoToMainMenu();
         return;
     }
     else
     {
         LoginProcessStatus = "Error";
         return;
         //TODO: Need to put something in here to let user know it didn't work.
     }
 }