示例#1
0
        private void DisplayProfile(Customer customer)
        {
            CustomerViewModel customerViewModel = new CustomerViewModel();
            CustomerProfile   profile;

            profile = customerViewModel.GetProfile(customer);

            GridTitle.Text = customer.Name;

            NameText.Text             = customer.Name;
            ResponsiblePartyText.Text = profile.ResponsibleParty;
            CreatedText.Text          = customer.Created.ToString();
            ResponsiblePartyText.Text = profile.ResponsibleParty;
            StreetText.Text           = profile.Street;
            CityStateZipText.Text     = profile.City + " " + profile.State + " " + profile.Zip;
            PhoneText.Text            = profile.Phone;
            EmailText.Text            = profile.Email;
        }