public void Init(sItemData itemData, System.Action <sItemData> onClick) { _itemData = itemData; _txtServerName = transform.Find("Txt_ServerName").GetComponent <Text> (); transform.Find("Btn_Confirm").GetComponent <Button> ().onClick.AddListener(() => { if (onClick != null) { onClick(itemData); } }); Update_ServerName(); }
public JsonResult searchData([FromBody] sItemData sItemData) { string clientip = Request.HttpContext.Connection.RemoteIpAddress.ToString().TrimEnd() == "::1" ? "127.0.0.1" : Request.HttpContext.Connection.RemoteIpAddress.ToString().TrimEnd(); return(Json(new SignClass().GetSearchModels(sItemData, clientip))); }