コード例 #1
0
        private void cafeComLeiteCf_Click(object sender, EventArgs e)
        {
            Cafe cafeComLeite = new Cafe("Café com leite", 3.0);

            SaldoTroco(cafeComLeite.NomeCafe, cafeComLeite.PrecoCafe);
        }
コード例 #2
0
        private void mochaCf_Click(object sender, EventArgs e)
        {
            Cafe mocha = new Cafe("Mocha", 4.0);

            SaldoTroco(mocha.NomeCafe, mocha.PrecoCafe);
        }
コード例 #3
0
        //Botões para seleção de café
        private void cappuccinoCf_Click(object sender, EventArgs e)
        {
            Cafe cappuccino = new Cafe("Cappuccino", 3.5);

            SaldoTroco(cappuccino.NomeCafe, cappuccino.PrecoCafe);
        }