예제 #1
0
        private void btnAddFunds_Click(object sender, EventArgs e)
        {
            var value = (checkBoxPay05.Checked ? .05 : 0) +
                        (checkBoxPay010.Checked ? .10 : 0) +
                        (checkBoxPay025.Checked ? .25 : 0) +
                        (checkBoxPay1.Checked ? 1 : 0) +
                        (checkBoxPay5.Checked ? 5 : 0) +
                        (checkBoxPay10.Checked ? 10 : 0);

            _payController.AddFunds(value);
        }