예제 #1
0
        private PapaBobs.DTO.OrderDTO buildOrder()
        {
            var order = new PapaBobs.DTO.OrderDTO();

            order.Size         = determineSize();
            order.Crust        = determineCrust();
            order.Sausage      = sausageCheckBox.Checked;
            order.Pepperoni    = pepperoniCheckBox.Checked;
            order.Onion        = onionsCheckBox.Checked;
            order.GreenPeppers = greenPeppersCheckBox.Checked;
            order.Name         = nametextBox.Text;
            order.Address      = addressTextBox.Text;
            order.Zip          = zipTextBox.Text;
            order.Phone        = phoneTextBox.Text;
            order.PaymentType  = determinePaymentType();
            return(order);
        }
예제 #2
0
        private PapaBobs.DTO.OrderDTO buildOrder()
        {
            var order = new PapaBobs.DTO.OrderDTO();

            //Crust & Size
            order.Size  = determineSize();
            order.Crust = determineCrust();

            //Toppings (values returned based on checked box)
            order.Sausage      = sausageCheckBox.Checked;
            order.Pepperoni    = pepperoniCheckBox.Checked;
            order.Onions       = onionsCheckBox.Checked;
            order.GreenPeppers = greenPeppersCheckBox.Checked;

            //Customers personal info
            order.Name        = nameTextBox.Text;
            order.Address     = addressTextBox.Text;
            order.Zip         = zipTextBox.Text;
            order.Phone       = phoneTextBox.Text;
            order.PaymentType = determinePaymentType();

            return(order);
        }