private void client_GetHouseInfoByIdCompleted(object sender, GetHouseInfoByIdCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result != null) { houseObj = e.Result.ToList()[0]; txtContent.RichTextBoxContext = houseObj.CONTENT; txtDeposit.Text = houseObj.DEPOSIT.ToString(); txtFloor.Text = houseObj.FLOOR.ToString(); txtHouseName.Text = houseObj.HOUSENAME; //txtIsRent.Text = houseObj.ISRENT; txtSharedDeposit.Text = houseObj.SHAREDDEPOSIT.ToString(); txtSharedRentCost.Text = houseObj.SHAREDRENTCOST.ToString(); if (!string.IsNullOrEmpty(houseObj.REMARK)) { txtRemark.Text = houseObj.REMARK.ToString(); } txtNumber.Text = houseObj.NUMBER.ToString(); txtContent.RichTextBoxContext = houseObj.CONTENT; txtRentCost.Text = houseObj.RENTCOST.ToString(); txtManageCost.Text = houseObj.MANAGECOST.ToString(); txtNum.Text = houseObj.ROOMCODE; txtRentCost.Text = houseObj.RENTCOST.ToString(); txtUptown.Text = houseObj.UPTOWN; } } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR")); } RefreshUI(RefreshedTypes.ProgressBar); }
private void client_GetHouseInfoByIdCompleted(object sender, GetHouseInfoByIdCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result != null) { houseObj = e.Result.ToList()[0]; txtContent.RichTextBoxContext = houseObj.CONTENT; txtDeposit.Text = houseObj.DEPOSIT.ToString(); txtFloor.Text = houseObj.FLOOR.ToString(); txtHouseName.Text = houseObj.HOUSENAME; //txtIsRent.Text = houseObj.ISRENT; txtSharedDeposit.Text = houseObj.SHAREDDEPOSIT.ToString(); txtSharedRentCost.Text = houseObj.SHAREDRENTCOST.ToString(); if (!string.IsNullOrEmpty(houseObj.REMARK)) { txtRemark.Text = houseObj.REMARK.ToString(); } txtNumber.Text = houseObj.Number.ToString(); txtContent.RichTextBoxContext = houseObj.CONTENT; txtRentCost.Text = houseObj.RENTCOST.ToString(); txtManageCost.Text = houseObj.MANAGECOST.ToString(); txtNum.Text = houseObj.ROOMCODE; txtRentCost.Text = houseObj.RENTCOST.ToString(); txtUptown.Text = houseObj.UPTOWN; } } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR")); } RefreshUI(RefreshedTypes.ProgressBar); }