/// <summary>
        /// Displaies the data set.
        /// </summary>
        /// <returns>The data set.</returns>
        /// <param name="stateType">State type.</param>
        /// <param name="setData">Set data.</param>
        private void DisplayDataSet(CurrentProfSettingStateType stateType, int key, string value)
        {
            switch (stateType)
            {
            case CurrentProfSettingStateType.Pref:
                _pref.text = value;
            #if UNITY_IOS
                MypageEventManager.Instance._prefId = (key).ToString();
            #else
                MypageEventManager.Instance._prefId = (key + 1).ToString();
            #endif

                break;

            case CurrentProfSettingStateType.City:
                var city = CommonModelHandle.GetCityDataByName(value);
                _city.text = value;
                MypageEventManager.Instance._cityId = city.id;
                break;

            case CurrentProfSettingStateType.BloodType:
                _bloodType.text = value + LocalMsgConst.BLOOD_TYPE_JA;
#if UNITY_IOS
                MypageEventManager.Instance._bloodType = (key).ToString();
#else
                MypageEventManager.Instance._bloodType = (key + 1).ToString();
#endif
                break;

            case CurrentProfSettingStateType.HairStyle:
                _hairStyle.text = value;
                MypageEventManager.Instance._hairStyle[0] = value;
                break;

            case CurrentProfSettingStateType.BodyType:
                _bodyType.text = value;
                MypageEventManager.Instance._bodyType [0] = value;
                break;

            case CurrentProfSettingStateType.Glasses:
                _glasses.text = value;
                MypageEventManager.Instance._glasses [0] = value;
                break;

            case CurrentProfSettingStateType.Type:
                _type.text = value;
                MypageEventManager.Instance._type [0] = value;
                break;

            case CurrentProfSettingStateType.Personality:
                _personality.text = value;
                MypageEventManager.Instance._personality [0] = value;
                break;

            case CurrentProfSettingStateType.Holiday:
                _holiday.text = value;
                MypageEventManager.Instance._holiday [0] = value;
                break;

            case CurrentProfSettingStateType.AnnualIncome:
                _annualIncome.text = value;
                MypageEventManager.Instance._annualIncome [0] = value;
                break;

            case CurrentProfSettingStateType.Education:
                _education.text = value;
                MypageEventManager.Instance._education [0] = value;
                break;

            case CurrentProfSettingStateType.Housemate:
                _housemate.text = value;
                MypageEventManager.Instance._housemate [0] = value;
                break;

            case CurrentProfSettingStateType.Sibling:
                _sibling.text = value;
                MypageEventManager.Instance._sibling [0] = value;
                break;

            case CurrentProfSettingStateType.Alcohol:
                _alcohol.text = value;
                MypageEventManager.Instance._alcohol [0] = value;
                break;

            case CurrentProfSettingStateType.Tobacco:
                _tobacco.text = value;
                MypageEventManager.Instance._tobacco [0] = value;
                break;

            case CurrentProfSettingStateType.Car:
                _car.text = value;
                MypageEventManager.Instance._car[0] = value;
                break;

            case CurrentProfSettingStateType.Pet:
                _pet.text = value;
                MypageEventManager.Instance._pet [0] = value;
                break;

            case CurrentProfSettingStateType.Hobby:
                _hobby.text = value;
                MypageEventManager.Instance._hobby [0] = value;
                break;

            case CurrentProfSettingStateType.Interest:
                _interest.text = value;
                MypageEventManager.Instance._interest [0] = value;
                break;

            case CurrentProfSettingStateType.Marital:
                _marital.text = value;
                MypageEventManager.Instance._marital[0] = value;
                break;
            }
        }
        /// <summary>
        /// Places the of origin.
        /// 都道府県設定(出身地設定), 市区町村設定(出身地詳細)パネルのオープン
        /// </summary>
        public void PlaceOfOriginOpen(bool isPref)
        {
#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IOS)
            //#if !UNITY_EDITOR && (UNITY_IOS)
            //Native Picker方式に変更。
            if (InitDataApi._httpCatchData != null)
            {
                List <string> tmpDataList = new List <string> ();
                string []     itemList    = { "" };

#if UNITY_IOS
                tmpDataList.Add("");
#endif

                //都道府県、選択。
                if (isPref == true)
                {
                    System.DateTime defaultSetDate = GetDateTimeByAge(18);

                    foreach (var tmpItem in InitDataApi._httpCatchData.result.pref)
                    {
                        tmpDataList.Add(tmpItem.name);
                    }
                    itemList = tmpDataList.ToArray();

                    //市区町村、選択。
                }
                else if (isPref == false && string.IsNullOrEmpty(_prefId) == false)
                {
                    foreach (var tmpItem in CommonModelHandle.GetCityData(_prefId))
                    {
                        tmpDataList.Add(tmpItem.Value.name);
                    }
                    itemList = tmpDataList.ToArray();
                }
                else
                {
                    Debug.Log(" 例外の処理。 ");
                    return;
                }

                //ここでイベントを「OKかキャンセル」のイベントをキャッチ。
                NativePicker.Instance.ShowCustomPicker(toScreenRect(_drawRect), itemList, (long val) =>
                {
                    if (isPref == true)
                    {
                        _currentProfSettingState = CurrentProfSettingStateType.Pref;
                        _cityId           = "";
                        _city.text        = "";
                        _userData.city_id = "";
                        _pref.text        = itemList[val];
#if UNITY_IOS
                        _prefId = ((int)val).ToString();
#else
                        _prefId = ((int)val + 1).ToString();
#endif

                        _userData.pref = _prefId;
                    }
                    else if (isPref == false)
                    {
                        _currentProfSettingState = CurrentProfSettingStateType.City;
                        _city.text        = itemList [val];
                        var city          = CommonModelHandle.GetCityDataByName(_city.text);
                        _cityId           = city.id;
                        _userData.city_id = _cityId;
                    }
                }, () => {
                    if (isPref == true)
                    {
                        _pref.text     = "指定しない";
                        _prefId        = "";
                        _userData.pref = _prefId;
                    }
                    else if (isPref == false)
                    {
                        if (string.IsNullOrEmpty(_prefId) == false)
                        {
                            _city.text        = "";
                            _cityId           = "";
                            _userData.city_id = _cityId;
                        }
                        else
                        {
                            Debug.Log("都道府県を先に選択してください的なポップアップが親切。");
                        }
                    }
                });
            }
#else
            HeaderPanel.Instance.BackButtonSwitch(false);
            HeaderPanel.Instance.BackButtonSwitch(true, PlaceOfOriginCloseEvent);
            if (isPref == true)
            {
                _currentProfSettingState = CurrentProfSettingStateType.Pref;
                _cityId           = "";
                _city.text        = "";
                _userData.city_id = "";
            }
            else if (isPref == false)
            {
                _currentProfSettingState = CurrentProfSettingStateType.City;
            }

            _profTemplatefInfiniteLimitScroll.Init();
            _backSwipe.EventMessageTarget = _panelProfileSetTemplate;

            PanelAnimate(_panelProfileSetTemplate);
                        #endif
        }