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 character = QuickDateTools.GetCharacter(dataUser.Character); if (Methods.FunString.StringNullRemover(character) != "-----") { IdCharacter = Convert.ToInt32(dataUser.Character); EdtCharacter.Text = character; } string children = QuickDateTools.GetChildren(dataUser.Children); if (Methods.FunString.StringNullRemover(children) != "-----") { IdChildren = Convert.ToInt32(dataUser.Children); EdtChildren.Text = children; } string friends = QuickDateTools.GetFriends(dataUser.Friends); if (Methods.FunString.StringNullRemover(friends) != "-----") { IdFriends = Convert.ToInt32(dataUser.Friends); EdtFriends.Text = friends; } string pets = QuickDateTools.GetPets(dataUser.Pets); if (Methods.FunString.StringNullRemover(pets) != "-----") { IdPets = Convert.ToInt32(dataUser.Pets); EdtPets.Text = pets; } } } catch (Exception e) { Console.WriteLine(e); } }