private void InitializeFields() { StorageManager.user = UserAccountsWrapper.getById(3); user = StorageManager.user; UserFirstName.Text = user.FirstName; UserLastName.Text = user.LastName; UserPassword.Text = user.Password; UserEmail.Text = user.Email; UserPhone.Text = user.Phone; StorageManager.add = AddressWrapper.getById(user.AddressID); add = StorageManager.add; AddressCountry.Text = add.Country; AddressState.Text = add.State; AddressCity.Text = add.City; AddressSector.Text = add.Sector; AddressStreet.Text = add.Street; AddressNumber.Text = add.StreetNo; AddressBuilding.Text = add.Building; AddressStaircase.Text = add.Staircase; AddressApartment.Text = add.Apartment; AddressFloor.Text = add.Floor; }
private void InitializeFields() { StorageManager.user = UserAccountsWrapper.getById(((UserAccount)Session["loggedUser"]).UserID); user = StorageManager.user; UserFirstName.Text = user.FirstName; UserLastName.Text = user.LastName; UserPassword.Text = user.Password; UserEmail.Text = user.Email; UserPhone.Text = user.Phone; StorageManager.add = AddressWrapper.getById(user.AddressID); add = StorageManager.add; AddressCountry.Text = add.Country; AddressState.Text = add.State; AddressCity.Text = add.City; }