예제 #1
0
 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();
 }
예제 #2
0
        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)));
        }