示例#1
0
        public void Display()
        {
            Person = null;

            firstNameView.Display();
            lastNameView.Display();
            birthdayView.Display();
            phoneNumberView.Display();
            heightView.Display();
            preferedBeveragesRead.Display();

            Person = new Person
            {
                FirstName         = firstNameView.Value,
                LastName          = lastNameView.Value,
                Birthday          = birthdayView.Value,
                PhoneNumber       = phoneNumberView.Value,
                Height            = heightView.Value,
                PreferedBeverages = preferedBeveragesRead.Values
            };
        }