public async void SearchData(string parameter)
 {
     HttpWebRequestUtils _httpWebRequestUtils = new HttpWebRequestUtils();
     _httpWebRequestUtils._getDataEvent += OnSearchDataProgressEvent;
     await _httpWebRequestUtils.GetStringAsync(string.Format(_searchUrl, parameter));
     _httpWebRequestUtils._getDataEvent -= OnSearchDataProgressEvent;
 }
 /// <summary>
 /// 得到用户信息
 /// </summary>
 public async void GetUserInfo(string session)
 {
     string info = string.Format("info?session={0}", session);
     _httpWebRequestUtils = new HttpWebRequestUtils();
     _httpWebRequestUtils._getDataEvent += OnUserInfoProgressEvent;
     await _httpWebRequestUtils.GetStringAsync(string.Format(_userAboutUrl, info));
     _httpWebRequestUtils._getDataEvent -= OnUserInfoProgressEvent;
 }
 /// <summary>
 /// 添加图书收藏
 /// </summary>
 public async void AddFav(string parameter)
 {
     HttpWebRequestUtils _httpWebRequestUtils = new HttpWebRequestUtils();
     _httpWebRequestUtils._getDataEvent += OnAddFavProgressEvent;
     await _httpWebRequestUtils.GetStringAsync(string.Format(_userAddFavUrl, parameter));
     _httpWebRequestUtils._getDataEvent -= OnAddFavProgressEvent;
 }
 public async void RankBookData(string parameter)
 {
     HttpWebRequestUtils _httpWebRequestUtils = new HttpWebRequestUtils();
     _httpWebRequestUtils._getDataEvent += OnRankDataProgressEvent;
     await _httpWebRequestUtils.GetStringAsync(string.Format(_rankUrl, parameter));
     _httpWebRequestUtils._getDataEvent -= OnRankDataProgressEvent;
 }
 /// <summary>
 /// 请求图书详情
 /// </summary>
 /// <param name="parameter"></param>
 public async void SearchBookDetail(string parameter)
 {
     HttpWebRequestUtils _httpWebRequestUtils = new HttpWebRequestUtils();
     _httpWebRequestUtils._getDataEvent += OnSearchBookDetailEvent;
     await _httpWebRequestUtils.GetStringAsync(string.Format(_searchBook, parameter));
     _httpWebRequestUtils._getDataEvent -= OnSearchBookDetailEvent;
 }
 /// <summary>
 /// 公告详情
 /// </summary>
 public async void GetReportDetial(string id)
 {
     HttpWebRequestUtils reqUtils = new HttpWebRequestUtils();
     reqUtils._getDataEvent += OnNewsReportDetialProgressEvent;
     await reqUtils.GetStringAsync(string.Format(newsReportDetialUrl, "announce", id));
     reqUtils._getDataEvent -= OnNewsReportDetialProgressEvent;
 }
 /// <summary>
 /// 公告列表
 /// </summary>
 public async void GetReportList(string page)
 {
     HttpWebRequestUtils reqUtils = new HttpWebRequestUtils();
     reqUtils._getDataEvent += OnNewsReprotListProgressEvent;
     await reqUtils.GetStringAsync(string.Format(newsReportListUrl, "announce", page));
     reqUtils._getDataEvent -= OnNewsReprotListProgressEvent;
 }
 /// <summary>
 /// 登陆
 /// </summary>
 public async void UserLogin(string username, string password)
 {
     HttpWebRequestUtils _httpWebRequestUtils = new HttpWebRequestUtils();
     _httpWebRequestUtils._getDataEvent += OnLoginProgressEvent;
     await _httpWebRequestUtils.GetStringAsync(string.Format(_userLoginUrl, username, password));
     _httpWebRequestUtils._getDataEvent -= OnLoginProgressEvent;
 }
        /// <summary>
        /// 修改密码
        /// </summary>
        public async void ModifyPassword(string info)
        {

            HttpWebRequestUtils _httpWebRequestUtils = new HttpWebRequestUtils();
            _httpWebRequestUtils._getDataEvent += OnModifyPasswordEvent;
            await _httpWebRequestUtils.PostStringAsync(_userChangedPwd, info);
            _httpWebRequestUtils._getDataEvent -= OnModifyPasswordEvent;
        }
 /// <summary>
 /// 带有图片图书收藏
 /// </summary>
 public async void GetFavoriteWithImgBookInfo(string session)
 {
     string info = string.Format("favoriteWithImg?session={0}", session);
     HttpWebRequestUtils _httpWebRequestUtils = new HttpWebRequestUtils();
     _httpWebRequestUtils._getDataEvent += OnFavoriteWithImgBook;
     await _httpWebRequestUtils.GetStringAsync(string.Format(_userAboutUrl, info));
     _httpWebRequestUtils._getDataEvent -= OnFavoriteWithImgBook;
 }
 /// <summary>
 /// 续借图书
 /// </summary>
 public async void RenewBook(string parameter)
 {
     string info = string.Format("renew?{0}", parameter);
     HttpWebRequestUtils _httpWebRequestUtils = new HttpWebRequestUtils();
     _httpWebRequestUtils._getDataEvent += OnRenew;
     await _httpWebRequestUtils.GetStringAsync(string.Format(_userAboutUrl, info));
     _httpWebRequestUtils._getDataEvent -= OnRenew;
 }