Exemple #1
0
        public void ReqAllShortCutItemList(List <ShortCuts> shortcut)
        {
            stSendAllShortCutPropertyUserCmd_CS cmd = new stSendAllShortCutPropertyUserCmd_CS();

            for (int i = 0; i < shortcut.Count; i++)
            {
                cmd.shortcut.Add(shortcut[i]);
            }
            NetService.Instance.Send(cmd);
        }
Exemple #2
0
        public void OnAllShortCutItemList(stSendAllShortCutPropertyUserCmd_CS cmd)
        {
            this.m_shortcutSetItemList.Clear();
            for (int i = 0; i < cmd.shortcut.Count; i++)
            {
                ShortCuts sc = new ShortCuts();
                sc.id     = cmd.shortcut[i].id;
                sc.itemid = cmd.shortcut[i].itemid;

                this.m_shortcutSetItemList.Add(sc);
            }


            if (DataManager.Manager <UIPanelManager>().IsShowPanel(PanelID.MainPanel))
            {
                DataManager.Manager <UIPanelManager>().SendMsg(PanelID.MainPanel, UIMsgID.eShortcutList, null);
            }
        }