public void AddFilterSwitch(MasterDataDefineLabel.KindType kindType)
    {
        SortDialogSwitchListContext filterSwitch = new SortDialogSwitchListContext();

        filterSwitch.KindType      = kindType;
        filterSwitch.NameImage     = MainMenuUtil.GetTextKindSprite(kindType, true);
        filterSwitch.IsSelect      = CheckSelectFilter(kindType, m_SortDialog.m_SortData);
        filterSwitch.DidSelectItem = OnClickSwitch;
        FilterSwitches.Add(filterSwitch);
    }
 void SetUpFilter()
 {
     FilterSwitches.Clear();
     for (int i = 0; i < (int)MasterDataDefineLabel.RarityType.MAX; i++)
     {
         SortDialogSwitchListContext filterSwitch = new SortDialogSwitchListContext();
         filterSwitch.RarityType    = (MasterDataDefineLabel.RarityType)i;
         filterSwitch.NameText      = GameTextUtil.GetText(string.Format("filter_text{0}", 21 + i));
         filterSwitch.IsSelect      = CheckSelectFilter(filterSwitch.RarityType, m_SortDialog.m_SortData);
         filterSwitch.DidSelectItem = OnClickSwitch;
         FilterSwitches.Add(filterSwitch);
     }
 }