private void GetMyInfoData() { try { if (ListUtils.MyUserInfo.Count == 0) { var sqlEntity = new SqLiteDatabase(); sqlEntity.GetDataMyInfo(); sqlEntity.Dispose(); } var dataUser = ListUtils.MyUserInfo.FirstOrDefault(); if (dataUser != null) { string ethnicity = QuickDateTools.GetEthnicity(dataUser.Ethnicity); if (Methods.FunString.StringNullRemover(ethnicity) != "-----") { EdtEthnicity.Text = ethnicity; IdEthnicity = Convert.ToInt32(dataUser.Ethnicity); } string body = QuickDateTools.GetBody(dataUser.Body); if (Methods.FunString.StringNullRemover(body) != "-----") { EdtBody.Text = body; IdBody = Convert.ToInt32(dataUser.Body); } EdtHeight.Text = dataUser.Height + " " + GetText(Resource.String.Lbl_Cm); string hairColor = QuickDateTools.GetHairColor(dataUser.HairColor); if (Methods.FunString.StringNullRemover(hairColor) != "-----") { EdtHairColor.Text = hairColor; IdHairColor = Convert.ToInt32(dataUser.HairColor); } } } catch (Exception e) { Console.WriteLine(e); } }