Beispiel #1
0
        public void set_glbMailList(Variant msgData)
        {
            bool flag = msgData.ContainsKey("glbmailrd");

            if (flag)
            {
                this._glbmailrd = msgData["glbmailrd"];
            }
            Variant variant = msgData["mails"];

            for (int i = 0; i < variant.Length; i++)
            {
                bool flag2 = this.mailInLocal(variant[i]["id"]);
                if (!flag2)
                {
                    variant[i]["frmcid"]  = 0;
                    variant[i]["glbmail"] = 1;
                    bool flag3 = variant[i]["id"]._int < this._glbmailrd;
                    if (flag3)
                    {
                        variant[i]["flag"] = (variant[i]["flag"] | 1);
                    }
                    this._mail_list._arr.Add(variant[i]);
                }
            }
            LGIUIMail lGIUIMail = this.g_mgr.g_uiM.getLGUI("LGUIMailImpl") as LGIUIMail;
            bool      flag4     = lGIUIMail == null;

            if (!flag4)
            {
                lGIUIMail.refreshMailList(this._mail_list);
            }
        }
Beispiel #2
0
        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);
                }
            }
        }
Beispiel #3
0
        public void delMailSuccess(int mailID)
        {
            for (int i = 0; i < this._mail_list.Length; i++)
            {
                bool flag = this._mail_list[i]["id"]._int == mailID;
                if (flag)
                {
                    this._mail_list._arr.RemoveAt(i);
                    break;
                }
            }
            LGIUIMail lGIUIMail = this.g_mgr.g_uiM.getLGUI("LGUIMailImpl") as LGIUIMail;
            bool      flag2     = lGIUIMail == null;

            if (!flag2)
            {
                lGIUIMail.refreshMailList(this._mail_list);
            }
        }
Beispiel #4
0
        public void set_ptMailList(Variant msgData)
        {
            Variant variant = msgData["mails"];

            for (int i = 0; i < variant.Length; i++)
            {
                bool flag = this.mailInLocal(variant[i]["id"]);
                if (!flag)
                {
                    this._mail_list._arr.Add(variant[i]);
                }
            }
            LGIUIMail lGIUIMail = this.g_mgr.g_uiM.getLGUI("LGUIMailImpl") as LGIUIMail;
            bool      flag2     = lGIUIMail == null;

            if (!flag2)
            {
                lGIUIMail.refreshMailList(this._mail_list);
            }
        }