private bool login() { var tempList = BaseAdapter.getAll <Tb_code>(); if (tempList.Count() == 0) { return(false); } HttpWorker.getUser(txt_username.Text.Trim());//模拟用户获取 //HttpWorker.login(txt_username.Text.Trim(), txt_password.Text.Trim()); //HttpWorker.getUserList(); return(true); }