Exemplo n.º 1
0
        private void btnOrder_Click(object sender, EventArgs e)
        {
            string name   = txbName.Text;
            int    coffee = Convert.ToInt32(txbCoffee.Text);
            int    donuts = Convert.ToInt32(txbDonuts.Text);

            Order o = new Order(name, coffee, donuts);

            ProcessOrder p = new ProcessOrder();

            p.ProcessTheOrder(o);
        }
Exemplo n.º 2
0
        private void Order_Click(object sender, EventArgs e)
        {
            String customerName   = textBox1.Text;
            int    coffeeSelected = Convert.ToInt32(numCoffee.Value);
            int    donutsSelected = Convert.ToInt32(numDonut.Value);

            orderOBJ o = new orderOBJ(customerName, coffeeSelected, donutsSelected);

            ProcessOrder p = new ProcessOrder();

            p.ProcessTheOrder(o);
        }