void MallEvent_OnOpenAddressDelivery(bool addAddress, PlaceDelivery place) { if (addAddress) { b_addNewAddress.gameObject.SetActive(true); b_updateAddress.gameObject.SetActive(false); ClearAddress(); } else { b_addNewAddress.gameObject.SetActive(false); b_updateAddress.gameObject.SetActive(true); SetUpAddress(place); } }
void SetUpAddress(PlaceDelivery p) { placeDelivery = p; company_txt.text = p.company; name_txt.text = p.fname; lastname_txt.text = p.lname; email_txt.text = p.email; phone_txt.text = p.phone; address_txt.text = p.address; dd_province.captionText.text = p.province; province_select = Mall.GetInstance.provinceList.Find(pv => pv.PROVINCE_NAME == provinceText.text); StartCoroutine(ServiceRequest.instance.LoadDistrict(province_select.PROVINCE_ID)); districtText.text = p.amphur; postCode_txt.text = p.postcode.ToString(); }
void EditAddress_OnEditAddress_Delivery(PlaceDelivery place) { MallEvent.instance.OpenAddressDelivery(false, place); SetPage(3); }
public void SetData(PlaceDelivery _place) { place = _place; company_txt.text = place.company; }
public void SetData(PlaceDelivery p) { place = p; name_txt.text = p.company; }
public void OpenAddressDelivery(bool addAddress, PlaceDelivery place) { OnOpenAddressDelivery(addAddress, place); }