예제 #1
0
        private void concept_Click(object sender, EventArgs e)
        {
            if (income != Convert.ToDouble(index_income.Text))
            {
                income = Convert.ToDouble(index_income.Text);
            }
            if (name == "")
            {
                MessageBox.Show("กรุณากรอกชื่อผู้ใช้ก่อน");
                workBar.Location = new Point(0, 268);
                workBar.Size     = new Size(8, 60);
                Panelindex.BringToFront();
                index_name.Focus();
            }
            else
            {
                workBar.Location = new Point(0, 679);
                workBar.Size     = new Size(8, 60);
                Tax_calculation();
                Panel_view.BringToFront();
                income_TB.Text        = income.ToString();
                sumtax_TB.Text        = sum_tax.ToString();
                net_TB.Text           = net.ToString();
                vat_TB.Text           = string.Format("{0} %", vat * 100);
                allpay_string_TB.Text = allpay_string;

                Tax_calculation();
                income_TB.Text        = income.ToString() + "  บาท";
                sumtax_TB.Text        = sum_tax.ToString() + "  บาท";
                net_TB.Text           = net.ToString() + "  บาท";
                vat_TB.Text           = string.Format("{0} %", vat * 100);
                allpay_string_TB.Text = allpay_string;
            }
        }
예제 #2
0
 private void HomeBT_Click(object sender, EventArgs e)
 {
     workBar.Location = new Point(0, 268);
     workBar.Size     = new Size(8, 60);
     Panelindex.BringToFront();
 }
예제 #3
0
 private void Back_to_index_Click(object sender, EventArgs e) //เมื่อกดปุ่มกลับในหน้า ตนเองและครอบครัว
 {
     workBar.Location = new Point(0, 268);
     workBar.Size     = new Size(8, 60);
     Panelindex.BringToFront();
 }