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) { EdtFirstName.Text = dataUser.FirstName; EdtLastName.Text = dataUser.LastName; EdtGender.Text = ListUtils.SettingsSiteList.FirstOrDefault()?.Gender?.FirstOrDefault(a => a.ContainsKey(dataUser.Gender))?.Values.FirstOrDefault() ?? dataUser.GenderTxt; IdGender = Convert.ToInt32(dataUser.Gender); EdtBirthday.Text = dataUser.Birthday; if (Methods.FunString.StringNullRemover(dataUser.Location) != "-----") { EdtLocation.Text = dataUser.Location; } if (Methods.FunString.StringNullRemover(dataUser.Language) != "-----") { EdtLanguage.Text = dataUser.Language; } string relationship = QuickDateTools.GetRelationship(dataUser.Relationship); if (Methods.FunString.StringNullRemover(relationship) != "-----") { EdtRelationship.Text = relationship; IdRelationShip = Convert.ToInt32(dataUser.Relationship); } string work = QuickDateTools.GetWorkStatus(dataUser.WorkStatus); if (Methods.FunString.StringNullRemover(work) != "-----") { EdtWorkStatus.Text = work; IdWorkStatus = Convert.ToInt32(dataUser.WorkStatus); } string education = QuickDateTools.GetEducation(dataUser.Education); if (Methods.FunString.StringNullRemover(education) != "-----") { EdtEducation.Text = education; IdEducation = Convert.ToInt32(dataUser.Education); } } } catch (Exception e) { Console.WriteLine(e); } }