private async Task BindCheckInAddressDataMember() { this.checkin_address_combox.DataSource = await user.getCheckInAddressList(); this.checkin_address_combox.DisplayMember = "text"; this.checkin_address_combox.ValueMember = "value"; this.checkin_address_combox.SelectedIndex = 0; }
private async Task BindDataMember() { this.checkin_address_combox.DataSource = await user.getCheckInAddressList(); this.checkin_address_combox.DisplayMember = "text"; this.checkin_address_combox.ValueMember = "value"; MemberCheckIn data = await user.getOneMemberById(this.currentID); this.weixin_username_txt.Text = data.nickName; this.weixin_number_txt.Text = data.wechatId; this.contact_name_txt.Text = data.contactName; this.contact_telephone_txt.Text = data.telephone; this.checkin_address_combox.SelectedValue = data.locationId; this.openId = data.openId; this.image_picturebox.Image = await ImageLoader.LoadImage(data.avatarUrl); this.base64Str = GetImageBase64(this.image_picturebox.Image); }