Example #1
0
        private void btn_Calculate_Click(object sender, EventArgs e)
        {
            BLInvoice blI = new BLInvoice();

            if (cmb_Month.Text == "None")
            {
                rtxt_Total.Text = "Total revenues in " + cmb_Year.Text + " is: " + blI.CalculateRevenue(cmb_Month.Text, cmb_Year.Text) + "$";
            }
            else
            {
                rtxt_Total.Text = "Total revenues in " + cmb_Month.Text + ", " + cmb_Year.Text + " is: " + blI.CalculateRevenue(cmb_Month.Text, cmb_Year.Text) + "$";
            }
        }