public void SetData(GameHelpInfo_Data info)
 {
     if (info != null)
     {
         this.m_HelpInfoList.Add(info.m_nSort, info);
     }
 }
    private void SelectList(short ListIndex)
    {
        GameHelpInfo_Data data = NrTSingleton <NrGameHelpInfoManager> .Instance.GetData(ListIndex);

        int num = 0;

        if (data != null)
        {
            this.m_nRealPage = -1;
            this.m_HelpInfo  = data;
            this.SetContext(true);
            for (int i = 0; i < 10; i++)
            {
                if (data.m_byPageOnOff[i] != 1)
                {
                    if (!string.IsNullOrEmpty(data.m_strText[i]) && !data.m_strText[i].Equals("0"))
                    {
                        if (i == 9)
                        {
                            break;
                        }
                        num++;
                    }
                }
            }
            this.m_nCurPage = 1;
            this.m_nMaxPage = num;
            this.m_lbPage.SetText(string.Format("{0} / {1}", this.m_nCurPage, this.m_nMaxPage));
        }
    }
 public override bool ParseDataFromNDT(TsDataReader dr)
 {
     foreach (TsDataReader.Row data in dr)
     {
         GameHelpInfo_Data gameHelpInfo_Data = new GameHelpInfo_Data();
         gameHelpInfo_Data.SetData(data);
         NrTSingleton <NrGameHelpInfoManager> .Instance.SetData(gameHelpInfo_Data);
     }
     return(true);
 }
    public void SetData()
    {
        for (short num = 0; num < NrTSingleton <NrGameHelpInfoManager> .Instance.GetCount(); num += 1)
        {
            GameHelpInfo_Data data = NrTSingleton <NrGameHelpInfoManager> .Instance.GetData(num + 1);

            if (data != null && data.m_byListOnOff == 0)
            {
                if (NrTSingleton <ContentsLimitManager> .Instance.IsItemLevelCheckBlock() || !(data.m_HelpListName == eHELP_LIST.Gear_Grinding.ToString()))
                {
                    if (!NrTSingleton <ContentsLimitManager> .Instance.IsItemNormalSkillBlock() || !(data.m_HelpListName == eHELP_LIST.Gear_Carving.ToString()))
                    {
                        NewListItem newListItem = new NewListItem(1, true, string.Empty);
                        newListItem.SetListItemData(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(data.m_strTitle), null, null, null);
                        newListItem.Data = data.m_nSort;
                        this.m_HelpList.Add(newListItem);
                    }
                }
            }
        }
        this.m_HelpList.RepositionItems();
    }
    public void SetViewType(string TypeName)
    {
        short             selectedItem = 0;
        short             listIndex    = 1;
        GameHelpInfo_Data data         = NrTSingleton <NrGameHelpInfoManager> .Instance.GetData(TypeName);

        if (data != null && data.m_byListOnOff == 0)
        {
            for (short num = 0; num < NrTSingleton <NrGameHelpInfoManager> .Instance.GetCount(); num += 1)
            {
                if (!(this.m_HelpList.GetItem((int)num) == null))
                {
                    if ((short)this.m_HelpList.GetItem((int)num).Data == data.m_nSort)
                    {
                        selectedItem = num;
                        listIndex    = data.m_nSort;
                        break;
                    }
                }
            }
        }
        this.m_HelpList.SetSelectedItem((int)selectedItem);
        this.SelectList(listIndex);
    }