public void deleteMore() { if (list_container != null) { string ids = ""; Transform trans = list_container.transform; for (int i = 0; i < trans.childCount; i++) { Transform sun = trans.GetChild(i); UIToggle toggle = sun.FindChild("delete-flag").GetComponent <UIToggle>(); if (toggle.value) { string[] ss = sun.name.Split("-"[0]); ids += ss[1] + ","; } } if (!MyUtilTools.stringIsNull(ids)) { SendMessageEntity entity = new SendMessageEntity(); entity.buffer.skip(4); entity.buffer.WriteString("DeleteEmail"); entity.buffer.WriteLong(MainData.instance.user.id); entity.buffer.WriteString(ids); EventDelegate sure = new EventDelegate(this, "confirmDeleteMore"); sure.parameters[0] = new EventDelegate.Parameter(); sure.parameters[0].obj = entity; ConfirmUtil.confirm("是否删除选中的邮件", sure); } else { DialogUtil.tip("请选择要删除的邮件"); } } }
void delete(MainData.EmailBody email) { EventDelegate sure = new EventDelegate(this, "confirmDelete"); sure.parameters[0] = new EventDelegate.Parameter(); sure.parameters[0].obj = email; ConfirmUtil.confirm("是否删除此邮件", sure); }
void confirmDelDeal(DealBody item) { EventDelegate sure = new EventDelegate(this, "delDeal"); sure.parameters[0] = new EventDelegate.Parameter(); sure.parameters[0].obj = item; ConfirmUtil.confirm("确定撤销此贴?", sure); }
void openDelRevert(RevertDel revert) { EventDelegate sure = new EventDelegate(this, "delRevertSure"); sure.parameters[0] = new EventDelegate.Parameter(); sure.parameters[0].obj = revert; ConfirmUtil.confirm("确定" + revert.tips + "此条回复内容?", sure); }
public void doGrab() { if (!MainData.instance.user.login()) { LoginEvent.tryToLogin(); return; } ConfirmUtil.confirm("确定抢单?", confirmGrab); }
public void openLogin() { if (MainData.instance.user.login()) { ConfirmUtil.confirm("切换账号?", _openLogin); } else { _openLogin(); } }
void checkIssue(DealBody item) { if (!MainData.instance.user.recharge.haveMoney(10)) { DialogUtil.tip("您的邮游币不足请先去充值"); return; } EventDelegate sure = new EventDelegate(this, "issueSure"); sure.parameters[0] = new EventDelegate.Parameter(); sure.parameters[0].obj = item; ConfirmUtil.confirm("需要消耗10个邮游币继续推送?", sure); }
public void SendMessage(byte[] datas, bool needShowLoading) { if (!socket.Connected) { ConfirmUtil.confirm("未连接服务器,连接?", tryToReconnect); return; } try { LoadUtil.show(needShowLoading); socket.BeginSend(datas, 0, datas.Length, SocketFlags.None, null, socket); } catch { Debug.Log("send message error"); } }
public void commit(GameObject owner) { if (owner.name.Equals("fk")) { ConfirmUtil.confirm("提交已付款提交后无法取消?", _fk); } else if (owner.name.Equals("fh")) { ConfirmUtil.confirm("提交已发货提交后无法取消?", _fh); } else if (owner.name.Equals("qr")) { ConfirmUtil.confirm("提交确认收货提交后无法取消?", _qr); } }
void cancleFavorite(DealBody item) { if (!MainData.instance.user.login()) { LoginEvent.tryToLogin(); LoginEvent.callback = new EventDelegate(this, "back_deal_detail"); LoginEvent.callback.parameters[0] = new EventDelegate.Parameter(); LoginEvent.callback.parameters[0].obj = item; return; } EventDelegate sure = new EventDelegate(this, "comfirmCancleFavorite"); sure.parameters[0] = new EventDelegate.Parameter(); sure.parameters[0].obj = item; ConfirmUtil.confirm("取消收藏?", sure); }
// Update is called once per frame void Update() { if (NetUtil.getInstance.mustLogin && !ConfirmUtil.isConfirmShow() && !LoadUtil.isActivity() && !DialogUtil.isPopTips()) { if (pushEvent != null) { pushEvent.ignoreAll(); } NetUtil.getInstance.mustLogin = false; ConfirmUtil.confirm("你的账号在别处登录了", goToLogin, exit); return; } List <ByteBuffer> modules = NetUtil.getInstance.Module; if (modules.Count > 0) { foreach (ByteBuffer buffer in modules) { buffer.ReadInt();//成功 int size = buffer.ReadInt(); for (int i = 0; i < size; i++) { byte code = buffer.ReadByte(); if (moduleCalls.ContainsKey(code)) { ModuleCallBack call = moduleCalls[code]; call(buffer); } } } modules.Clear(); } modules = NetUtil.getInstance.Cachs; if (modules.Count > 0) { modules.Clear(); } if (Input.GetKeyDown(KeyCode.Escape)) { if (LoadUtil.isActivity()) { return; } if (ConfirmUtil.isConfirmShow()) { ConfirmUtil.TryToDispear(); return; } GameObject photographer = GameObject.Find("photographer"); if (photographer != null && photographer.activeSelf) { photographer.GetComponent <PhotographEvent>().over(); return; } GameObject popup_select = GameObject.Find("popup-select"); if (popup_select != null && popup_select.activeSelf) { popup_select.GetComponent <PopupListEvent>().close(); return; } if (DialogUtil.isPopTips()) { DialogUtil.dispear(); return; } ConfirmUtil.confirm("是否退出?", exit); } }
void doDelete() { delete_obj.SetActive(false); ConfirmUtil.confirm("确定删除此条收货地址?", comfirmDelete); }
public void zjfk() { ConfirmUtil.confirm("确定已给卖家打款?", _zjfk); }
public void zjsk() { ConfirmUtil.confirm("确定买家已打款?", _zjsk); }
public void revoke() { ConfirmUtil.confirm("确定撤销?", _revoke); }
public void reject() { ConfirmUtil.confirm("确定拒绝此用户的卖家认证?", _reject); }
public void pass() { MainData.UserData user = datas[selectIndex]; ConfirmUtil.confirm("确定通过此用户的卖家认证?", _pass); }
public static void tryToLogin() { ConfirmUtil.confirm("未登录,去登录?", openLogin); callback = null; }