public override void SetComponent()
 {
     this.m_BtnMove             = (base.GetControl("Button_confirm") as Button);
     this.m_BtnCancel           = (base.GetControl("Button_cancle") as Button);
     this.m_ChannleDropDownList = (base.GetControl("DropDownList_channel") as DropDownList);
     this.m_BtnMove.SetValueChangedDelegate(new EZValueChangedDelegate(this.BtnClickMove));
     this.m_BtnCancel.SetValueChangedDelegate(new EZValueChangedDelegate(this.BtnClickCancel));
     this.m_ChannleDropDownList.AddValueChangedDelegate(new EZValueChangedDelegate(this.ChannleDropDownList_SelectionChange));
     this.m_SelectedChallenInfo = null;
     base.SetScreenCenter();
     base.ShowBlackBG(0.5f);
     TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "CHANNEL", "OPEN", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
 }
    public void SetChannelInfo(CHANNEL_STATE_INFO[] channelState, int i32Count)
    {
        string str = string.Empty;

        this.m_ChannleDropDownList.SetViewArea(i32Count);
        this.m_ChannleDropDownList.Clear();
        if (NrTSingleton <NrGlobalReference> .Instance.IsEnableLog)
        {
            TsLog.LogWarning("SetChannelInfo [count:{0}]", new object[]
            {
                i32Count
            });
        }
        for (int i = 0; i < i32Count; i++)
        {
            if (NrTSingleton <NrGlobalReference> .Instance.IsEnableLog)
            {
                TsLog.LogWarning("SetChannelInfo [index:{0}] [channel:{1}]", new object[]
                {
                    i,
                    TKString.NEWString(channelState[i].ChannelName)
                });
            }
            if ((short)Client.m_MyCH == channelState[i].ChannelID)
            {
                string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2080");

                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str, new object[]
                {
                    textFromInterface,
                    "channel",
                    TKString.NEWString(channelState[i].ChannelName)
                });
            }
            else
            {
                switch (channelState[i].State)
                {
                case 0:
                {
                    string textFromInterface2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("391");

                    NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str, new object[]
                        {
                            textFromInterface2,
                            "channel",
                            TKString.NEWString(channelState[i].ChannelName)
                        });

                    break;
                }

                case 1:
                {
                    string textFromInterface3 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("393");

                    NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str, new object[]
                        {
                            textFromInterface3,
                            "channel",
                            TKString.NEWString(channelState[i].ChannelName)
                        });

                    break;
                }

                case 2:
                {
                    string textFromInterface4 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("394");

                    NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str, new object[]
                        {
                            textFromInterface4,
                            "channel",
                            TKString.NEWString(channelState[i].ChannelName)
                        });

                    break;
                }

                case 3:
                {
                    string textFromInterface5 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2081");

                    if (textFromInterface5 == string.Empty)
                    {
                        str = "1";
                    }
                    else
                    {
                        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str, new object[]
                            {
                                textFromInterface5,
                                "channel",
                                TKString.NEWString(channelState[i].ChannelName)
                            });
                    }
                    break;
                }
                }
            }
            this.m_Items[i] = new ListItem();
            this.m_Items[i].SetColumnStr(0, str);
            this.m_Items[i].Key = channelState[i];
            this.m_ChannleDropDownList.Add(this.m_Items[i]);
        }
        this.m_ChannleDropDownList.RepositionItems();
        this.m_ChannleDropDownList.SetFirstItem();
        if (i32Count >= 1)
        {
            this.m_SelectedChallenInfo = channelState[0];
        }
    }
    private void ChannleDropDownList_SelectionChange(IUIObject obj)
    {
        DropDownList dropDownList = (DropDownList)obj;

        this.m_SelectedChallenInfo = (CHANNEL_STATE_INFO)this.m_Items[dropDownList.SelectIndex].Key;
    }