/// <summary> /// Inits the coroutine. /// </summary> /// <returns>The coroutine.</returns> private IEnumerator InitCoroutine() { string _commonFileName = LocalFileConstants.GetLocalFileDir() + LocalFileConstants.COMMON_LOCAL_FILE_NAME; Helper.LocalFileHandler.Init(_commonFileName); //ファイルが作成されるまでポーリングして処理待ち while (System.IO.File.Exists(_commonFileName) == false) { yield return(System.IO.File.Exists(_commonFileName) == true); } SearchEventManager.SearchCondition SearchCondition = LocalFileHandler.Load <SearchEventManager.SearchCondition> (LocalFileConstants.SEARCH_CONDITION_KEY); //ここからマスターデータを当てるDropdownに当てる処理 - ここから if (InitDataApi._httpCatchData == null) { new InitDataApi(); while (InitDataApi._success == true) { yield return(InitDataApi._success == false); } } //表示順 - 選択 ここから ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ _orderList = new List <string> (); //ローカルにデータが存在する場合。 _orderList.Add("指定しない"); foreach (var d in InitDataApi._httpCatchData.result.user_sort) { _orderList.Add(d.name); } _order.AddOptions(_orderList); if (string.IsNullOrEmpty(SearchCondition._order) == false) { _order.value = int.Parse(CommonModelHandle.GetByIdBaseData(SearchCondition._order, CurrentProfSettingStateType.UserSort).id); } //表示順 - 選択 ここまで ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ //性別 - 選択 ここから ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ _genderList = new List <string> (); //ローカルにデータが存在する場合。 _genderList.Add("指定しない"); foreach (var d in InitDataApi._httpCatchData.result.sex_cd) { _genderList.Add(d.name); } _gender.AddOptions(_genderList); if (string.IsNullOrEmpty(SearchCondition._sex) == false) { if (CommonModelHandle.GetByIdBaseData(SearchCondition._sex, CurrentProfSettingStateType.Gender).name == "男性") { _gender.value = 1; } else if (CommonModelHandle.GetByIdBaseData(SearchCondition._sex, CurrentProfSettingStateType.Gender).name == "女性") { _gender.value = 2; } } else { _gender.value = 0; } //性別 - 選択 ここまで ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ //体型 - 選択 ここから ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ _bodyTypeList = new List <string> (); _bodyTypeList.Add("指定しない"); string gender = "1"; if (AppStartLoadBalanceManager._gender == ((int)GenderType.Male).ToString()) { gender = ((int)GenderType.Male).ToString(); } else if (AppStartLoadBalanceManager._gender == ((int)GenderType.FeMale).ToString()) { gender = ((int)GenderType.FeMale).ToString(); } var bodyType = CommonModelHandle.GetNameMaster(gender, CurrentProfSettingStateType.BodyType); foreach (var d in bodyType) { _bodyTypeList.Add(d.name); } _bodyType.AddOptions(_bodyTypeList); if (string.IsNullOrEmpty(SearchCondition._bodyType) == false) { _bodyType.value = DropdownValueCalc(SearchCondition._bodyType, bodyType); } else { _bodyType.value = 0; } //体型 - 選択 ここまで ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ //年齢 - 何歳まで ここから ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ _ageFromList = new List <string> (); _ageFromList.Add("18"); for (int i = 18; i <= 100; i++) { _ageFromList.Add(i.ToString()); } _ageFrom.AddOptions(_ageFromList); _tmpCount = 0; if (string.IsNullOrEmpty(SearchCondition._ageFrom) == false) { foreach (var afl in _ageFromList) { if (afl == SearchCondition._ageFrom) { _ageFrom.value = _tmpCount; break; } _tmpCount++; } } else { _ageFrom.value = 0; } //年齢 - 何歳まで ここまで ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ //年齢 - 何歳まで ここから ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ _ageToList = new List <string> (); _ageToList.Add("100"); for (int i = 18; i <= 100; i++) { _ageToList.Add(i.ToString()); } _ageTo.AddOptions(_ageToList); _tmpCount = 0; if (string.IsNullOrEmpty(SearchCondition._ageTo) == false) { foreach (var atl in _ageToList) { if (atl == SearchCondition._ageTo) { _ageTo.value = _tmpCount; break; } _tmpCount++; } } else { _ageTo.value = 0; } //年齢 - 何歳まで ここまで ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ //身長から - ここから ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ _heightFromList = new List <string> (); _heightFromList.Add("指定なし"); for (int i = 110; i <= 220; i++) { _heightFromList.Add(i.ToString()); } _heightFrom.AddOptions(_heightFromList); _tmpCount = 0; if (string.IsNullOrEmpty(SearchCondition._heightFrom) == false) { foreach (var hfl in _heightFromList) { if (hfl == SearchCondition._heightFrom) { _heightFrom.value = _tmpCount; break; } _tmpCount++; } } else { _heightFrom.value = 0; } //身長から - ここまで ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ //身長まで - ここから ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ _heightToList = new List <string> (); _heightToList.Add("指定なし"); for (int i = 110; i <= 220; i++) { _heightToList.Add(i.ToString()); } _heightTo.AddOptions(_heightToList); _tmpCount = 0; if (string.IsNullOrEmpty(SearchCondition._heightTo) == false) { foreach (var htl in _heightToList) { if (htl == SearchCondition._heightTo) { _heightTo.value = _tmpCount; break; } _tmpCount++; } } else { _heightTo.value = 0; } //身長まで - ここまで ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ //距離 - ここから ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ _radiusList = new List <string> (); _radiusList.Add("指定しない"); foreach (var d in InitDataApi._httpCatchData.result.radius) { _radiusList.Add(d.name); } _radius.AddOptions(_radiusList); _tmpCount = 0; if (string.IsNullOrEmpty(SearchCondition._radius) == false) { foreach (var r in _radiusList) { if (r == CommonModelHandle.GetByIdBaseData(SearchCondition._radius, CurrentProfSettingStateType.Radius).name) { _radius.value = _tmpCount; break; } _tmpCount++; } } else { _radius.value = 0; } //距離 - ここまで ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ //画像 - ここから ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ if (string.IsNullOrEmpty(SearchCondition._isImage) == false) { _isImageListObject.value = int.Parse(SearchCondition._isImage); } //画像 - ここまで ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ //キーワードを当てる処理 - ここから ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ if (string.IsNullOrEmpty(SearchCondition._keyword) == false) { _keyword.text = SearchCondition._keyword; } //キーワードを当てる処理 - ここまで ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ //ここまでマスターデータを当てるDropdownに当てる処理 - ここまで }
/// <summary> /// Natives the picker button. /// ネイティブピッカー用のボタン処理。 /// </summary> /// <returns>The picker button.</returns> /// <param name="stateType">State type.</param> public void NativePickerButton(string state) { SearchConditionType stateType = (SearchConditionType)System.Enum.Parse(typeof(SearchConditionType), state); string [] itemList = { "" }; List <string> list = new List <string> (); #if UNITY_IOS list.Add(""); #endif switch (stateType) { case SearchConditionType.Order: var order = CommonModelHandle.GetNameMaster(CurrentProfSettingStateType.UserSort); foreach (var o in order) { list.Add(o.name); } break; case SearchConditionType.Gender: list.Add("指定しない"); list.Add("女性"); list.Add("男性"); break; case SearchConditionType.AgeHigh: case SearchConditionType.AgeLow: for (int i = 18; i <= 100; i++) { list.Add(i.ToString()); } break; case SearchConditionType.TallHigh: case SearchConditionType.TallLow: for (int i = 110; i <= 220; i++) { list.Add(i.ToString()); } break; case SearchConditionType.BodyType: var bodyType = CommonModelHandle.GetNameMaster(AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.BodyType); list.Add("指定しない"); foreach (var b in bodyType) { list.Add(b.name); } break; case SearchConditionType.IsImage: list.Add("指定しない"); list.Add("画像なし"); list.Add("画像あり"); break; case SearchConditionType.Radius: list.Add("指定しない"); foreach (var radius in InitDataApi._httpCatchData.result.radius) { list.Add(radius.name); } break; } if (list.Count > 0) { itemList = list.ToArray(); NativePicker.Instance.ShowCustomPicker(toScreenRect(_drawRect), itemList, 0, (long val) => { for (int i = 0; i < list.Count; i++) { if ((int)val == i) { DisplayDataSet(stateType, i, list[i]); break; } } Debug.Log("ピッカーの値。 " + val); }, () => { Debug.Log("ピッカーをキャンセルにした場合。"); }); } }
public void OnUpdateItem(int itemCount, GameObject obj) { if (itemCount < 0 || itemCount >= max) { obj.SetActive(false); } else { obj.SetActive(true); if (obj.GetComponentInChildren <ProfileDataSetItem> () != null) { if (MypageEventManager.Instance != null) { switch (MypageEventManager.Instance._currentProfSettingState) { case CurrentProfSettingStateType.Pref: var pref = CommonModelHandle.GetPrefData(); id = pref[itemCount].id; value = pref[itemCount].name; break; case CurrentProfSettingStateType.City: string prefId = MypageEventManager.Instance._prefId; var city = CommonModelHandle.GetCityData(prefId); if (city.Count > 0) { id = city[itemCount].id; value = city[itemCount].name; } break; case CurrentProfSettingStateType.BloodType: var bloodType = InitDataApi._httpCatchData.result.blood_type; id = bloodType [itemCount].id; value = bloodType [itemCount].name; break; case CurrentProfSettingStateType.HairStyle: var hairStyle = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.HairStyle ); id = hairStyle [itemCount].name; value = hairStyle [itemCount].name; break; case CurrentProfSettingStateType.BodyType: var bodyType = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.BodyType ); id = bodyType [itemCount].name; value = bodyType [itemCount].name; break; case CurrentProfSettingStateType.Glasses: var glasses = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Glasses ); id = glasses [itemCount].name; value = glasses [itemCount].name; break; case CurrentProfSettingStateType.Type: var type = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Type ); id = type [itemCount].name; value = type [itemCount].name; break; case CurrentProfSettingStateType.Personality: var personality = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Personality ); id = personality [itemCount].name; value = personality [itemCount].name; break; case CurrentProfSettingStateType.Holiday: var holiday = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Holiday ); id = holiday [itemCount].name; value = holiday [itemCount].name; break; case CurrentProfSettingStateType.AnnualIncome: var annualIncome = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.AnnualIncome ); id = annualIncome [itemCount].name; value = annualIncome [itemCount].name; break; case CurrentProfSettingStateType.Education: var education = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Education ); id = education [itemCount].name; value = education [itemCount].name; break; case CurrentProfSettingStateType.Housemate: var housemate = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Housemate ); id = housemate [itemCount].name; value = housemate [itemCount].name; break; case CurrentProfSettingStateType.Sibling: var sibling = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Sibling ); id = sibling [itemCount].name; value = sibling [itemCount].name; break; case CurrentProfSettingStateType.Alcohol: var alcohol = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Alcohol ); id = alcohol [itemCount].name; value = alcohol [itemCount].name; break; case CurrentProfSettingStateType.Tobacco: var tobacco = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Tobacco ); id = tobacco [itemCount].name; value = tobacco [itemCount].name; break; case CurrentProfSettingStateType.Car: var car = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Car ); id = car [itemCount].name; value = car [itemCount].name; break; case CurrentProfSettingStateType.Pet: var pet = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Pet ); id = pet [itemCount].name; value = pet [itemCount].name; break; case CurrentProfSettingStateType.Hobby: var hobby = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Hobby ); id = hobby [itemCount].name; value = hobby [itemCount].name; break; case CurrentProfSettingStateType.Interest: var interest = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Interest ); id = interest [itemCount].name; value = interest [itemCount].name; break; case CurrentProfSettingStateType.Marital: var marital = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Marital ); id = marital [itemCount].name; value = marital [itemCount].name; break; case CurrentProfSettingStateType.Gender: var gender = InitDataApi._httpCatchData.result.sex_cd; id = gender[itemCount].id; value = gender[itemCount].name; break; case CurrentProfSettingStateType.Radius: var radius = InitDataApi._httpCatchData.result.radius; id = radius[itemCount].id; value = radius[itemCount].name; break; } } if (PanelStartInputUserData.Instance != null) { switch (PanelStartInputUserData.Instance._currentProfSettingState) { case CurrentProfSettingStateType.Pref: var pref = CommonModelHandle.GetPrefData(); id = pref [itemCount].id; value = pref [itemCount].name; break; case CurrentProfSettingStateType.City: string prefId = PanelStartInputUserData.Instance._prefId; var city = CommonModelHandle.GetCityData(prefId); if (city.Count > 0) { id = city [itemCount].id; value = city [itemCount].name; } break; } } var item = obj.GetComponentInChildren <ProfileDataSetItem> (); item.UpdateItem(itemCount, id, value); } } }
/// <summary> /// Set this instance. /// </summary> private IEnumerator Set() { var controllers = GetComponents <MonoBehaviour>() .Where(item => item is IInfiniteScrollSetup) .Select(item => item as IInfiniteScrollSetup) .ToList(); if (MypageEventManager.Instance) { switch (MypageEventManager.Instance._currentProfSettingState) { case CurrentProfSettingStateType.Pref: max = InitDataApi._httpCatchData.result.pref.Count; break; case CurrentProfSettingStateType.City: string prefId = MypageEventManager.Instance._prefId; max = CommonModelHandle.GetCityData(prefId).Count; break; case CurrentProfSettingStateType.BloodType: max = InitDataApi._httpCatchData.result.blood_type.Count; break; case CurrentProfSettingStateType.HairStyle: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.HairStyle ).Count; break; case CurrentProfSettingStateType.BodyType: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.BodyType ).Count; break; case CurrentProfSettingStateType.Glasses: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Glasses ).Count; break; case CurrentProfSettingStateType.Type: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Type ).Count; break; case CurrentProfSettingStateType.Personality: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Personality ).Count; break; case CurrentProfSettingStateType.Holiday: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Holiday ).Count; break; case CurrentProfSettingStateType.AnnualIncome: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.AnnualIncome ).Count; break; case CurrentProfSettingStateType.Education: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Education ).Count; break; case CurrentProfSettingStateType.Housemate: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Housemate ).Count; break; case CurrentProfSettingStateType.Sibling: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Sibling ).Count; break; case CurrentProfSettingStateType.Alcohol: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Alcohol ).Count; break; case CurrentProfSettingStateType.Tobacco: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Tobacco ).Count; break; case CurrentProfSettingStateType.Car: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Car ).Count; break; case CurrentProfSettingStateType.Pet: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Pet ).Count; break; case CurrentProfSettingStateType.Hobby: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Hobby ).Count; break; case CurrentProfSettingStateType.Interest: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Interest ).Count; break; case CurrentProfSettingStateType.Marital: max = CommonModelHandle.GetNameMaster( AppStartLoadBalanceManager._gender, CurrentProfSettingStateType.Marital ).Count; break; case CurrentProfSettingStateType.Gender: max = InitDataApi._httpCatchData.result.sex_cd.Count; break; case CurrentProfSettingStateType.Radius: max = InitDataApi._httpCatchData.result.radius.Count; break; } } if (PanelStartInputUserData.Instance != null) { switch (PanelStartInputUserData.Instance._currentProfSettingState) { case CurrentProfSettingStateType.Pref: max = InitDataApi._httpCatchData.result.pref.Count; break; case CurrentProfSettingStateType.City: string prefId = PanelStartInputUserData.Instance._prefId; max = CommonModelHandle.GetCityData(prefId).Count; break; } } for (int i = 0; i < m_instantateItemCount; i++) { var item = Instantiate(m_ItemBase) as RectTransform; item.SetParent(transform, false); item.name = i.ToString(); item.anchoredPosition = (direction == Direction.Vertical) ? new Vector2(0, -ItemScale * (i)) : new Vector2(ItemScale * (i), 0); m_itemList.Add(item); item.gameObject.SetActive(true); foreach (var controller in controllers) { controller.OnUpdateItem(i, item.gameObject); } } foreach (var controller in controllers) { controller.OnPostSetupItems(); } _isUpdateTrigger = true; yield break; }
/// <summary> /// Natives the picker set. /// </summary> /// <returns>The picker set.</returns> /// <param name="stateType">State type.</param> private void NativePickerSet(CurrentProfSettingStateType stateType) { string [] itemList = { "" }; List <string> list = new List <string> (); #if UNITY_IOS list.Add(""); #endif switch (stateType) { case CurrentProfSettingStateType.Pref: var pref = CommonModelHandle.GetPrefData(); foreach (var p in pref) { list.Add(p.Value.name); } //都道府県選択のスキームに入るから市区町村のデータをリセット。 MypageEventManager.Instance._cityId = ""; _city.text = ""; break; case CurrentProfSettingStateType.City: var city = CommonModelHandle.GetCityData(MypageEventManager.Instance._prefId); foreach (var c in city) { list.Add(c.Value.name); } break; case CurrentProfSettingStateType.BloodType: foreach (var b in InitDataApi._httpCatchData.result.blood_type) { list.Add(b.name); } break; case CurrentProfSettingStateType.Profile: break; case CurrentProfSettingStateType.HairStyle: case CurrentProfSettingStateType.BodyType: case CurrentProfSettingStateType.Glasses: case CurrentProfSettingStateType.Type: case CurrentProfSettingStateType.Personality: case CurrentProfSettingStateType.Holiday: case CurrentProfSettingStateType.AnnualIncome: case CurrentProfSettingStateType.Education: case CurrentProfSettingStateType.Housemate: case CurrentProfSettingStateType.Sibling: case CurrentProfSettingStateType.Alcohol: case CurrentProfSettingStateType.Tobacco: case CurrentProfSettingStateType.Car: case CurrentProfSettingStateType.Pet: case CurrentProfSettingStateType.Hobby: case CurrentProfSettingStateType.Interest: case CurrentProfSettingStateType.Marital: var item = CommonModelHandle.GetNameMaster(AppStartLoadBalanceManager._gender, stateType); foreach (var i in item) { list.Add(i.name); } break; } if (list.Count > 0) { itemList = list.ToArray(); NativePicker.Instance.ShowCustomPicker(toScreenRect(_drawRect), itemList, 0, (long val) => { //プロフィールの変更がある事を通知する用 _isProfileChangeState = true; for (int i = 0; i < list.Count; i++) { if ((int)val == i) { DisplayDataSet(stateType, i, list[i]); break; } } }, () => { //ピッカーをキャンセルにした場合。"); }); } }
/// <summary> /// Inits the coroutine. /// </summary> /// <returns>The coroutine.</returns> private IEnumerator InitCoroutine() { //ここからマスターデータを当てるDropdownに当てる処理 - ここから if (InitDataApi._httpCatchData == null) { new InitDataApi(); while (InitDataApi._success == true) { yield return(InitDataApi._success == false); } } Debug.Log(InitDataApi._httpCatchData.result.board_category.Count + " ここを通っていますか? "); //カテゴリ - 選択 ここから _categoryList = new List <string> (); _categoryList.Add("指定しない"); foreach (var d in InitDataApi._httpCatchData.result.board_category) { _categoryList.Add(d.name); } _category.AddOptions(_categoryList); //カテゴリ - 選択 ここまで //性別 - 選択 ここから _genderList = new List <string> (); _genderList.Add("指定しない"); foreach (var d in InitDataApi._httpCatchData.result.sex_cd) { _genderList.Add(d.name); } _gender.AddOptions(_genderList); //性別 - 選択 ここまで //体型 - 選択 ここから _bodyTypeList = new List <string> (); _bodyTypeList.Add("指定しない"); string gender = "1"; if (AppStartLoadBalanceManager._gender == ((int)GenderType.Male).ToString()) { gender = ((int)GenderType.Male).ToString(); } else if (AppStartLoadBalanceManager._gender == ((int)GenderType.FeMale).ToString()) { gender = ((int)GenderType.FeMale).ToString(); } var bodyType = CommonModelHandle.GetNameMaster(gender, CurrentProfSettingStateType.BodyType); foreach (var d in bodyType) { _bodyTypeList.Add(d.name); } _bodyType.AddOptions(_bodyTypeList); //体型 - 選択 ここまで //年齢 - 何歳まで ここから _ageFromList = new List <string> (); _ageFromList.Add("18"); for (int i = 18; i <= 100; i++) { _ageFromList.Add(i.ToString()); } _ageFrom.AddOptions(_ageFromList); //年齢 - 何歳まで ここまで //年齢 - 何歳まで ここから _ageToList = new List <string> (); _ageToList.Add("100"); for (int i = 18; i <= 100; i++) { _ageToList.Add(i.ToString()); } _ageTo.AddOptions(_ageToList); //年齢 - 何歳まで ここまで //身長から - ここから _heightFromList = new List <string> (); _heightFromList.Add("110"); for (int i = 110; i <= 220; i++) { _heightFromList.Add(i.ToString()); } _heightFrom.AddOptions(_heightFromList); //身長から - ここまで //身長まで - ここから _heightToList = new List <string> (); _heightToList.Add("220"); for (int i = 110; i <= 220; i++) { _heightToList.Add(i.ToString()); } _heightTo.AddOptions(_heightToList); //身長まで - ここまで //距離 - ここから _radiusList = new List <string> (); _radiusList.Add("指定しない"); foreach (var d in InitDataApi._httpCatchData.result.radius) { _radiusList.Add(d.name); } _radius.AddOptions(_radiusList); //距離 - ここまで //ここまでマスターデータを当てるDropdownに当てる処理 - ここまで }