コード例 #1
0
        private void GetMyInfoData()
        {
            try
            {
                var local = ListUtils.MyProfileList?.FirstOrDefault();
                if (local != null)
                {
                    TxtFirstName.Text = Methods.FunString.DecodeString(local.FirstName);
                    TxtLastName.Text  = Methods.FunString.DecodeString(local.LastName);
                    TxtLocation.Text  = local.Address;
                    TxtMobile.Text    = local.PhoneNumber;
                    TxtWebsite.Text   = local.Website;
                    TxtWork.Text      = local.Working;
                    TxtSchool.Text    = local.School;
                    IdRelationShip    = local.RelationshipId;

                    string relationship = WoWonderTools.GetRelationship(Convert.ToInt32(local.RelationshipId));
                    if (Methods.FunString.StringNullRemover(relationship) != "Empty")
                    {
                        TxtRelationship.Text = relationship;
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }