public void OpenForm()
    {
        this.m_form = Singleton <CUIManager> .GetInstance().OpenForm(InBattleShortcutMenu.InBattleShortcutMenu_FORM_PATH, false, true);

        DebugHelper.Assert(this.m_form != null, "InBattleShortcutMenu m_form == null");
        if (this.m_form == null)
        {
            return;
        }
        this.RegEvent();
        this.m_rightTablist     = this.m_form.transform.Find("Panel_Main/Panel_Right/Menu").GetComponent <CUIListScript>();
        this.m_rightContentList = this.m_form.transform.Find("Panel_Main/Panel_Right/ShortcutList").GetComponent <CUIListScript>();
        DebugHelper.Assert(this.m_rightTablist != null, "InBattleShortcutMenu m_rightTablist == null");
        DebugHelper.Assert(this.m_rightContentList != null, "InBattleShortcutMenu m_rightContentList == null");
        if (this.m_rightTablist == null)
        {
            return;
        }
        if (this.m_rightContentList == null)
        {
            return;
        }
        UT.SetTabList(Singleton <InBattleMsgMgr> .get_instance().title_list, 0, this.m_rightTablist);
        this.m_leftContentList = this.m_form.transform.Find("Panel_Main/Panel_Left/SelectedList").GetComponent <CUIListScript>();
        this.ReviseBtn         = this.m_form.transform.Find("Panel_Main/Panel_Left/BtnGroup/ReviseBtn").gameObject;
        this.CancelBtn         = this.m_form.transform.Find("Panel_Main/Panel_Left/BtnGroup/CancelBtn").gameObject;
        this.SureBtn           = this.m_form.transform.Find("Panel_Main/Panel_Left/BtnGroup/SureBtn").gameObject;
        DebugHelper.Assert(this.m_leftContentList != null, "InBattleShortcutMenu m_leftContentList == null");
        DebugHelper.Assert(this.ReviseBtn != null, "InBattleShortcutMenu ReviseBtn == null");
        DebugHelper.Assert(this.CancelBtn != null, "InBattleShortcutMenu CancelBtn == null");
        DebugHelper.Assert(this.SureBtn != null, "InBattleShortcutMenu SureBtn == null");
        this.SetBtnNormal();
        this.RefreshLeft();
    }
    public void OpenForm(CUIEvent uiEvent, bool bShow = true)
    {
        if (this.m_CUIForm != null)
        {
            this.m_CUIForm.gameObject.CustomSetActive(true);
            this.m_tabIndex = -1;
            if (this.tablistScript != null)
            {
                this.tablistScript.m_alwaysDispatchSelectedChangeEvent = true;
                this.tablistScript.SelectElement(0, true);
                this.tablistScript.m_alwaysDispatchSelectedChangeEvent = false;
            }
            if (this.contentList != null)
            {
                this.contentList.SelectElement(-1, false);
            }
        }
        else
        {
            this.m_CUIForm = Singleton <CUIManager> .GetInstance().OpenForm(InBattleMsgView_FORM_PATH, true, true);

            DebugHelper.Assert(this.m_CUIForm != null, "InbattleMsgView m_CUIForm == null");
            if (this.m_CUIForm != null)
            {
                this.tablistScript = this.m_CUIForm.transform.Find("chatTools/node/Tab/List").GetComponent <CUIListScript>();
                this.contentList   = this.m_CUIForm.transform.Find("chatTools/node/ListView/List").GetComponent <CUIListScript>();
                DebugHelper.Assert(this.tablistScript != null, "InbattleMsgView tablistScript == null");
                DebugHelper.Assert(this.contentList != null, "InbattleMsgView contentList == null");
                if ((this.tablistScript != null) && (this.contentList != null))
                {
                    UT.SetTabList(Singleton <InBattleMsgMgr> .instance.title_list, 0, this.tablistScript);
                    if (!bShow)
                    {
                        this.m_CUIForm.gameObject.CustomSetActive(false);
                    }
                }
            }
        }
    }