Example #1
0
        public void AddToListOfAddresses()
        {
            FoodInfoStringAddress FoodSAddress = new FoodInfoStringAddress();

            FoodSAddress.Address = Address.Burger;
            FoodSAddress.Choose(FoodSAddress.Address);
            addressesList.AddToList(FoodSAddress.SAddress);
            FoodSAddress.Address = Address.CheeseCake;
            FoodSAddress.Choose(FoodSAddress.Address);
            addressesList.AddToList(FoodSAddress.SAddress);
            FoodSAddress.Address = Address.Pizza;
            FoodSAddress.Choose(FoodSAddress.Address);
            addressesList.AddToList(FoodSAddress.SAddress);
        }
        private void AddToListOfAddresses()
        {
            StringAddress sAddress = new StringAddress();

            sAddress.Address = Address.Facebook;
            sAddress.Choose(sAddress.Address);
            addressesList.AddToList(sAddress.SAddress);
            sAddress.Address = Address.Instagram;
            sAddress.Choose(sAddress.Address);
            addressesList.AddToList(sAddress.SAddress);
            sAddress.Address = Address.Twitter;
            sAddress.Choose(sAddress.Address);
            addressesList.AddToList(sAddress.SAddress);
        }