public void got_newGlbMail(Variant msgData) { int mailid = 0; bool flag = msgData.ContainsKey("id"); if (flag) { mailid = msgData["id"]; } bool flag2 = this.mailInLocal(mailid); if (!flag2) { this._glbmailrd = msgData["id"]._int; msgData["frmcid"] = 0; msgData["flag"] = 0; msgData["glbmail"]["glbmail"] = 1; this._mail_list._arr.Add(msgData["glbmail"]); LGIUINotify lGIUINotify = this.g_mgr.g_uiM.getLGUI("LGUINotifyImpl") as LGIUINotify; lGIUINotify.notifyNewMail(msgData, true); LGIUIMail lGIUIMail = this.g_mgr.g_uiM.getLGUI("LGUIMailImpl") as LGIUIMail; bool flag3 = lGIUIMail == null; if (!flag3) { lGIUIMail.refreshMailList(this._mail_list); } } }
public void setTradeReqData(Variant msgData) { this._traderCid = msgData["cid"]; this._traderName = msgData["name"]; LGIUINotify lGIUINotify = (this.g_mgr.g_uiM as muUIClient).getLGUI("notify") as LGIUINotify; lGIUINotify.notifyTradeRequest(msgData, true); LGIUIMainUI lGIUIMainUI = (this.g_mgr.g_uiM as muUIClient).getLGUI("LGUIMainUIImpl") as LGIUIMainUI; lGIUIMainUI.systemmsg(new Variant(this._traderName + LanguagePack.getLanguageText("trade", "request")), LGUIConstant.SYSMSG_TYPE_RB1); }