Exemplo n.º 1
0
        public override void onShowed()
        {
            if (getInstance == null)
            {
                return;
            }
            if (uiData != null && uiData.Count > 0)
            {
                int tpid = -1;
                if (uiData.Count > 1)
                {
                    tpid = (int)uiData[1];
                }

                onTab((string)uiData[0], tpid);
            }
            else
            {
                if (model.GetSummons().Count <= 0)
                {
                    onTab("tujian");
                }
                else
                {
                    onTab("shuxing");
                }
            }

            refresh_summon_list();

            UiEventCenter.getInstance().onWinOpen(uiName);
        }