/// <summary> /// ソート&フィルタ情報の設定 /// </summary> /// <param name="sortInfo"></param> public void SetUpSortData(LocalSaveSortInfo sortInfo) { m_IsTutorialSortData = false; if (sortInfo != null && sortInfo.m_SortType == (int)MAINMENU_SORT_SEQ.SEQ_INIT) { sortInfo = SortDialog.SetDefaultSortInfo(sortInfo, SortDialog.DIALOG_TYPE.UNIT); } m_unitBaseList.SetUpSortData(sortInfo); m_SortInfo = sortInfo; if (sortInfo != null) { m_SortType = (MAINMENU_SORT_SEQ)sortInfo.m_SortType; if (sortInfo.m_FavoriteSorts != null) { m_FavoriteSortTypes = new MAINMENU_SORT_SEQ[sortInfo.m_FavoriteSorts.Length]; for (int i = 0; i < sortInfo.m_FavoriteSorts.Length; i++) { m_FavoriteSortTypes[i] = (MAINMENU_SORT_SEQ)sortInfo.m_FavoriteSorts[i].m_SortType; } } m_unitBaseList.AddSortInfo(SORT_PARAM.ID, (sortInfo.m_SortIsAscOrder) ? SORT_ORDER.ASCENDING : SORT_ORDER.DESCENDING); m_unitBaseList.AddSortInfo(SORT_PARAM.LEVEL, (sortInfo.m_SortIsAscOrder) ? SORT_ORDER.ASCENDING : SORT_ORDER.DESCENDING); } m_unitBaseList.AddSortInfo(SORT_PARAM.UNIQUE_ID, SORT_ORDER.ASCENDING); }
public void SetUpSortData(LocalSaveSortInfo sortInfo) { if (sortInfo != null && sortInfo.m_SortType == (int)MAINMENU_SORT_SEQ.SEQ_INIT) { sortInfo = SortDialog.SetDefaultSortInfo(sortInfo, SortDialog.DIALOG_TYPE.FRIEND); } friendBaseList.SetUpSortData(sortInfo); m_SortInfo = sortInfo; if (sortInfo != null) { friendBaseList.AddSortInfo(SORT_PARAM.FRIEND_STATE, (sortInfo.m_SortIsAscOrder) ? SORT_ORDER.ASCENDING : SORT_ORDER.DESCENDING); friendBaseList.AddSortInfo(SORT_PARAM.LOGIN_TIME, (sortInfo.m_SortIsAscOrder) ? SORT_ORDER.ASCENDING : SORT_ORDER.DESCENDING); friendBaseList.AddSortInfo(SORT_PARAM.ID, (sortInfo.m_SortIsAscOrder) ? SORT_ORDER.ASCENDING : SORT_ORDER.DESCENDING); } }