예제 #1
0
 private void SetSelectFirstType(uint type, bool force = false)
 {
     if (null == mSecondTabCreator)
     {
         return;
     }
     if (type == 0)
     {
         mSecondTabCreator.DoToggle(0, true, true);
         m_uint_activeFType = 0;
         UpdateAchieveContent();
         return;
     }
     if (m_uint_activeFType == type && !force)
     {
         mSecondTabCreator.DoToggle(mlstFirstTabIds.IndexOf(m_uint_activeFType), true, true);
         return;
     }
     m_uint_activeFType = type;
     mSecondTabCreator.Open(mlstFirstTabIds.IndexOf(m_uint_activeFType), true);
 }
예제 #2
0
 private void SetSelectFirstType(uint type, bool force = false)
 {
     if (null == mSecondTabCreator)
     {
         return;
     }
     if (m_uint_activeFType == type && !force)
     {
         mSecondTabCreator.DoToggle(mlstFirstTabIds.IndexOf(m_uint_activeFType), true, true);
         return;
     }
     m_uint_activeFType = type;
     mSecondTabCreator.Open(mlstFirstTabIds.IndexOf(m_uint_activeFType), true);
     selectSecondsKey = m_dic[m_uint_activeFType][0];
     SetSelectSecondType(selectSecondsKey, true);
 }
예제 #3
0
    /// <summary>
    /// 设置选中第一分页
    /// </summary>
    /// <param name="type"></param>
    private void SetSelectFirstType(uint type, bool force = false)
    {
        if (null == mSecondTabCreator)
        {
            return;
        }
        if (m_uint_activeFType == type && !force)
        {
            mSecondTabCreator.DoToggle(mlstFirstTabIds.IndexOf(m_uint_activeFType), true, true);
            return;
        }
        m_uint_activeFType = type;
        mSecondTabCreator.Open(mlstFirstTabIds.IndexOf(m_uint_activeFType), true);
        CategoryTypeData ctd = m_mgr.GetCategoryTypeDataByType(CategoryTypeData.CategoryType.First, m_uint_activeFType);
        uint             selectSecondsKey = 0;

        if (null != ctd && ctd.GetDatas().Count != 0)
        {
            selectSecondsKey = ctd.GetDatas()[0];
        }
        SetSelectSecondType(selectSecondsKey, m_uint_activeStype == 0);
    }